Bug 630697 - Flash crash [@ _SEH_prolog ]; r=bsmedberg a=blocking-final+

--HG--
extra : rebase_source : e6b3b46eb6390302d4cb5429cc983d7158dfb41a
This commit is contained in:
Jim Mathies 2011-02-04 14:51:27 -05:00
Родитель 21c8ae56be
Коммит cf1b34b64b
1 изменённых файлов: 14 добавлений и 6 удалений

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

@ -1393,9 +1393,13 @@ PluginInstanceChild::SetWindowLongAHook(HWND hWnd,
GetProp(hWnd, kPluginInstanceChildProperty));
// Hook our subclass back up, just like we do on setwindow.
self->mPluginWndProc =
reinterpret_cast<WNDPROC>(sUser32SetWindowLongAHookStub(hWnd, nIndex,
reinterpret_cast<LONG_PTR>(PluginWindowProc)));
WNDPROC currentProc =
reinterpret_cast<WNDPROC>(GetWindowLongPtr(hWnd, GWLP_WNDPROC));
if (currentProc != PluginWindowProc) {
self->mPluginWndProc =
reinterpret_cast<WNDPROC>(sUser32SetWindowLongAHookStub(hWnd, nIndex,
reinterpret_cast<LONG_PTR>(PluginWindowProc)));
}
return proc;
}
@ -1422,9 +1426,13 @@ PluginInstanceChild::SetWindowLongWHook(HWND hWnd,
GetProp(hWnd, kPluginInstanceChildProperty));
// Hook our subclass back up, just like we do on setwindow.
self->mPluginWndProc =
reinterpret_cast<WNDPROC>(sUser32SetWindowLongWHookStub(hWnd, nIndex,
reinterpret_cast<LONG_PTR>(PluginWindowProc)));
WNDPROC currentProc =
reinterpret_cast<WNDPROC>(GetWindowLongPtr(hWnd, GWLP_WNDPROC));
if (currentProc != PluginWindowProc) {
self->mPluginWndProc =
reinterpret_cast<WNDPROC>(sUser32SetWindowLongAHookStub(hWnd, nIndex,
reinterpret_cast<LONG_PTR>(PluginWindowProc)));
}
return proc;
}