From b19b7eb3abf5263d51b5100f3478f6979d120491 Mon Sep 17 00:00:00 2001 From: offhub <6871698+offhub@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:52:30 +0300 Subject: [PATCH] Update proc.c Restores the BlockSoftwareUpdaters setting. --- Sandboxie/core/dll/proc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Sandboxie/core/dll/proc.c b/Sandboxie/core/dll/proc.c index 4ac427b9..e26eb7ad 100644 --- a/Sandboxie/core/dll/proc.c +++ b/Sandboxie/core/dll/proc.c @@ -1653,14 +1653,15 @@ _FX BOOL Proc_AlternateCreateProcess( void *lpCurrentDirectory, LPPROCESS_INFORMATION lpProcessInformation, BOOL *ReturnValue) { - //if (SbieApi_QueryConfBool(NULL, L"BlockSoftwareUpdaters", TRUE)) - if (Proc_IsSoftwareUpdateW(lpApplicationName ? lpApplicationName : lpCommandLine)) { + if (SbieApi_QueryConfBool(NULL, L"BlockSoftwareUpdaters", TRUE)) { + if (Proc_IsSoftwareUpdateW(lpApplicationName ? lpApplicationName : lpCommandLine)) { - SetLastError(ERROR_ACCESS_DENIED); - *ReturnValue = FALSE; + SetLastError(ERROR_ACCESS_DENIED); + *ReturnValue = FALSE; - SbieApi_MonitorPutMsg(MONITOR_OTHER, L"Blocked start of an updater"); - return TRUE; // exit CreateProcessInternal + SbieApi_MonitorPutMsg(MONITOR_OTHER, L"Blocked start of an updater"); + return TRUE; // exit CreateProcessInternal + } } #ifndef _WIN64