Disable remaining DLL hooks

This commit is contained in:
Jacek Caban 2012-02-13 13:09:25 +01:00
parent d0a4fe6b9e
commit 36f8d72627
2 changed files with 6 additions and 0 deletions

View File

@ -1499,6 +1499,7 @@ PluginInstanceChild::HookSetWindowLongPtr()
if (!(GetQuirks() & PluginModuleChild::QUIRK_FLASH_HOOK_SETLONGPTR))
return;
#ifndef WINE_GECKO_SRC
sUser32Intercept.Init("user32.dll");
#ifdef _WIN64
if (!sUser32SetWindowLongAHookStub)
@ -1515,6 +1516,7 @@ PluginInstanceChild::HookSetWindowLongPtr()
sUser32Intercept.AddHook("SetWindowLongW", reinterpret_cast<intptr_t>(SetWindowLongWHook),
(void**) &sUser32SetWindowLongWHookStub);
#endif
#endif
}
/* windowless track popup menu helpers */

View File

@ -455,6 +455,10 @@ void Init()
Preferences::AddUintVarCache(&sLowPhysicalMemoryNotificationIntervalMS,
"memory.low_physical_memory_notification_interval_ms", 10000);
#ifdef WINE_GECKO_SRC
return;
#endif
// Don't register the hooks if we're a build instrumented for PGO or if both
// thresholds are 0. (If we're an instrumented build, the compiler adds
// function calls all over the place which may call VirtualAlloc; this makes