1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-09-24 03:28:26 +02: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)
{
#ifdef _WIN64
if (IsUserOOBEOrCredentialReset())
if (GetSystemMetrics(SM_CLEANBOOT) != 0 || IsUserOOBEOrCredentialReset())
{
IncrementDLLReferenceCount(hModule);
bInstanced = TRUE;