Bug 1332523 - Move message indicating when the blocklist is initialized after user32.dll was loaded to the blocklist itself. r=dmajor
This commit is contained in:
@@ -288,14 +288,6 @@ int main(int argc, char* argv[], char* envp[])
|
||||
|
||||
#ifdef HAS_DLL_BLOCKLIST
|
||||
DllBlocklist_Initialize();
|
||||
|
||||
#ifdef DEBUG
|
||||
// In order to be effective against AppInit DLLs, the blocklist must be
|
||||
// initialized before user32.dll is loaded into the process (bug 932100).
|
||||
if (GetModuleHandleA("user32.dll")) {
|
||||
fprintf(stderr, "DLL blocklist was unable to intercept AppInit DLLs.\n");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_BROWSER_CAN_BE_CONTENTPROC
|
||||
|
||||
@@ -757,8 +757,13 @@ DllBlocklist_Initialize()
|
||||
}
|
||||
sBlocklistInitAttempted = true;
|
||||
|
||||
// In order to be effective against AppInit DLLs, the blocklist must be
|
||||
// initialized before user32.dll is loaded into the process (bug 932100).
|
||||
if (GetModuleHandleA("user32.dll")) {
|
||||
sUser32BeforeBlocklist = true;
|
||||
#ifdef DEBUG
|
||||
printf_stderr("DLL blocklist was unable to intercept AppInit DLLs.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
NtDllIntercept.Init("ntdll.dll");
|
||||
@@ -773,7 +778,7 @@ DllBlocklist_Initialize()
|
||||
if (!ok) {
|
||||
sBlocklistInitFailed = true;
|
||||
#ifdef DEBUG
|
||||
printf_stderr ("LdrLoadDll hook failed, no dll blocklisting active\n");
|
||||
printf_stderr("LdrLoadDll hook failed, no dll blocklisting active\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user