зеркало из https://github.com/mozilla/pjs.git
Bug 630697 - Flash crash [@ _SEH_prolog ]; r=bsmedberg a=blocking-final+
--HG-- extra : rebase_source : e6b3b46eb6390302d4cb5429cc983d7158dfb41a
This commit is contained in:
Родитель
21c8ae56be
Коммит
cf1b34b64b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче