diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 5b85cd6..eff4795 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -10161,15 +10161,17 @@ DWORD Inject(BOOL bIsExplorer) } RtlQueryFeatureConfigurationFunc = GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlQueryFeatureConfiguration"); - rv = funchook_prepare( - funchook, - (void**)&RtlQueryFeatureConfigurationFunc, - RtlQueryFeatureConfigurationHook - ); - if (rv != 0) - { - FreeLibraryAndExitThread(hModule, rv); - return FALSE; + if (RtlQueryFeatureConfigurationFunc) { + rv = funchook_prepare( + funchook, + (void**)&RtlQueryFeatureConfigurationFunc, + RtlQueryFeatureConfigurationHook + ); + if (rv != 0) + { + FreeLibraryAndExitThread(hModule, rv); + return FALSE; + } } printf("Setup ntdll functions done\n");