Skip to content

Commit

Permalink
Update file.c
Browse files Browse the repository at this point in the history
  • Loading branch information
isaak654 authored Jul 12, 2021
1 parent a4e6b49 commit ae43f35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sandboxie/core/dll/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2447,8 +2447,8 @@ _FX NTSTATUS File_NtCreateFileImpl(
){

//
// MSIServer when accessing \??\C:\WINDOWS\Installer\???????.msi files will get a PROGOLEGE_NOT_HELD error when requesting ACCESS_SYSTEM_SECURITY
// Howeever if we broadly clear this flag we will get error 1946 'System.AppUserModel.ID' could not be set on *.lnk files
// MSIServer when accessing \??\C:\WINDOWS\Installer\???????.msi files will get a PRIVILEGE_NOT_HELD error when requesting ACCESS_SYSTEM_SECURITY
// However, if we broadly clear this flag we will get Warning 1946 Property 'System.AppUserModel.ID' could not be set on *.lnk files
//

DesiredAccess &= ~ACCESS_SYSTEM_SECURITY;
Expand Down Expand Up @@ -3042,7 +3042,7 @@ _FX NTSTATUS File_NtCreateFileImpl(

//
// MSI must not fail accessing \??\C:\WINDOWS\Installer\Config.msi but this folder is readable only for system,
// so we create a boxed copy copy instead and open it
// so we create a boxed copy instead and open it
//

RtlInitUnicodeString(&objname, CopyPath);
Expand Down Expand Up @@ -6907,4 +6907,4 @@ _FX BOOLEAN DigitalGuardian_Init(HMODULE hModule)
Dll_DigitalGuardian = hModule;

return TRUE;
}
}

0 comments on commit ae43f35

Please sign in to comment.