Bug 606473 - Enable plugin hooks once WindowsDllInterceptor supports 64-bit. r=bsmedberg

This commit is contained in:
Makoto Kato 2011-07-28 19:06:56 +09:00
Родитель 4befa4efb9
Коммит c9033d133b
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -493,12 +493,6 @@ SetWindowLongWHook(HWND hWnd,
static void static void
HookSetWindowLongPtr() HookSetWindowLongPtr()
{ {
#ifdef _WIN64
// XXX WindowsDllInterceptor doesn't support hooks
// in 64-bit builds, disabling this code for now.
return;
#endif
sUser32Intercept.Init("user32.dll"); sUser32Intercept.Init("user32.dll");
#ifdef _WIN64 #ifdef _WIN64
sUser32Intercept.AddHook("SetWindowLongPtrA", reinterpret_cast<intptr_t>(SetWindowLongPtrAHook), sUser32Intercept.AddHook("SetWindowLongPtrA", reinterpret_cast<intptr_t>(SetWindowLongPtrAHook),

Просмотреть файл

@ -1478,12 +1478,6 @@ PluginInstanceChild::SetWindowLongWHook(HWND hWnd,
void void
PluginInstanceChild::HookSetWindowLongPtr() PluginInstanceChild::HookSetWindowLongPtr()
{ {
#ifdef _WIN64
// XXX WindowsDllInterceptor doesn't support hooks
// in 64-bit builds, disabling this code for now.
return;
#endif
if (!(GetQuirks() & PluginModuleChild::QUIRK_FLASH_HOOK_SETLONGPTR)) if (!(GetQuirks() & PluginModuleChild::QUIRK_FLASH_HOOK_SETLONGPTR))
return; return;