зеркало из https://github.com/mozilla/pjs.git
Stop crash in mousewheel code when wheel is rolled over another Gecko app window (e.g. mfcEmbed). b=137213 r=bryner@netscape.com alecf@netscape.com
This commit is contained in:
Родитель
276756d187
Коммит
91507facc0
|
@ -4056,6 +4056,15 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
// No window is under the pointer
|
||||
break;
|
||||
}
|
||||
|
||||
// We don't care about windows belonging to other processes.
|
||||
DWORD processId = 0;
|
||||
GetWindowThreadProcessId(destWnd, &processId);
|
||||
if (processId != GetCurrentProcessId())
|
||||
{
|
||||
// Somebody elses window
|
||||
break;
|
||||
}
|
||||
|
||||
LONG proc = ::GetWindowLong(destWnd, GWL_WNDPROC);
|
||||
if (proc != (LONG)&nsWindow::WindowProc) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче