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