Skip to content

Commit

Permalink
Main: Prevent injection in safe mode (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Mar 13, 2024
1 parent 5e7bad2 commit 95ea9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -14492,7 +14492,7 @@ HRESULT EntryPoint(DWORD dwMethod)
if (bIsThisExplorer)
{
#ifdef _WIN64
if (IsUserOOBEOrCredentialReset())
if (GetSystemMetrics(SM_CLEANBOOT) != 0 || IsUserOOBEOrCredentialReset())
{
IncrementDLLReferenceCount(hModule);
bInstanced = TRUE;
Expand Down

0 comments on commit 95ea9e7

Please sign in to comment.