Browse Source

Main: Prevent injection in safe mode (#2968)

pull/3235/head
Amrsatrio 2 years ago
parent
commit
95ea9e740b
  1. 2
      ExplorerPatcher/dllmain.c

2
ExplorerPatcher/dllmain.c

@ -14492,7 +14492,7 @@ HRESULT EntryPoint(DWORD dwMethod)
if (bIsThisExplorer) if (bIsThisExplorer)
{ {
#ifdef _WIN64 #ifdef _WIN64
if (IsUserOOBEOrCredentialReset()) if (GetSystemMetrics(SM_CLEANBOOT) != 0 || IsUserOOBEOrCredentialReset())
{ {
IncrementDLLReferenceCount(hModule); IncrementDLLReferenceCount(hModule);
bInstanced = TRUE; bInstanced = TRUE;

Loading…
Cancel
Save