1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-28 01:10:55 +01:00

Main: Prevent injection in safe mode (#2968)

This commit is contained in:
Amrsatrio 2024-03-13 07:17:12 +07:00
parent 5e7bad22cd
commit 95ea9e740b

View File

@ -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;