Merge pull request #4046 from offhub/change001

Update proc.c
This commit is contained in:
DavidXanatos 2024-07-03 19:12:10 +02:00 committed by GitHub
commit 33c12fa789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 6 deletions

View File

@ -1653,7 +1653,7 @@ _FX BOOL Proc_AlternateCreateProcess(
void *lpCurrentDirectory, LPPROCESS_INFORMATION lpProcessInformation,
BOOL *ReturnValue)
{
//if (SbieApi_QueryConfBool(NULL, L"BlockSoftwareUpdaters", TRUE))
if (SbieApi_QueryConfBool(NULL, L"BlockSoftwareUpdaters", TRUE)) {
if (Proc_IsSoftwareUpdateW(lpApplicationName ? lpApplicationName : lpCommandLine)) {
SetLastError(ERROR_ACCESS_DENIED);
@ -1662,6 +1662,7 @@ _FX BOOL Proc_AlternateCreateProcess(
SbieApi_MonitorPutMsg(MONITOR_OTHER, L"Blocked start of an updater");
return TRUE; // exit CreateProcessInternal
}
}
#ifndef _WIN64
if (Proc_IsSplWow64(lpApplicationName, lpCommandLine,