mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Disable remaining DLL hooks
This commit is contained in:
parent
d0a4fe6b9e
commit
36f8d72627
@ -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 */
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user