Skip to content

Commit

Permalink
1.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Dec 18, 2024
1 parent 83751d8 commit ece1bfa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed BSoD "CRITICAL_PROCESS_DIED" when terminate all sandboxed programs [#1316](https://github.com/sandboxie-plus/Sandboxie/issues/1316)
- Note: we now terminate boxed processes individually instead of terminating using the job object, unless "TerminateJobObject=y" is set
- fixed Ini Editor Font Selection Not Working After INI Highlighting Feature Added [#4429](https://github.com/sandboxie-plus/Sandboxie/issues/4429)
- fixed BSOD issue with 'LogMessageEvents=y'



Expand Down
6 changes: 6 additions & 0 deletions Sandboxie/core/drv/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ _FX NTSTATUS Conf_Read(ULONG session_id)
}
}

//
// cache some config
//

Log_LogMessageEvents = Conf_Get_Boolean(NULL, L"LogMessageEvents", 0, FALSE);

return status;
}

Expand Down
11 changes: 10 additions & 1 deletion Sandboxie/core/drv/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
#include "session.h"
#include "conf.h"


//---------------------------------------------------------------------------
// Variables
//---------------------------------------------------------------------------


BOOLEAN Log_LogMessageEvents = FALSE;


//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
Expand Down Expand Up @@ -156,7 +165,7 @@ _FX void Log_Popup_MsgEx(

ULONG data = 0;

if (Conf_Get_Boolean(NULL, L"LogMessageEvents", 0, FALSE))
if (Log_LogMessageEvents)
data |= 0x01;

Api_SendServiceMessage(SVC_LOG_MESSAGE, sizeof(ULONG), &data);
Expand Down
8 changes: 8 additions & 0 deletions Sandboxie/core/drv/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
#define MSG_CONF_SOURCE_TEXT MSG_1412


//---------------------------------------------------------------------------
// Variables
//---------------------------------------------------------------------------


extern BOOLEAN Log_LogMessageEvents;


//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
Expand Down

0 comments on commit ece1bfa

Please sign in to comment.