From 95ea9e740b815a9659bcafc50192c773383c3ade Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Wed, 13 Mar 2024 07:17:12 +0700 Subject: [PATCH] Main: Prevent injection in safe mode (#2968) --- ExplorerPatcher/dllmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 47c02c0..ab6c8ab 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -14492,7 +14492,7 @@ HRESULT EntryPoint(DWORD dwMethod) if (bIsThisExplorer) { #ifdef _WIN64 - if (IsUserOOBEOrCredentialReset()) + if (GetSystemMetrics(SM_CLEANBOOT) != 0 || IsUserOOBEOrCredentialReset()) { IncrementDLLReferenceCount(hModule); bInstanced = TRUE;