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
git-svn-id: svn://10.0.0.236/trunk@120195 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user