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:
locka%iol.ie 2002-04-29 14:50:58 +00:00
Родитель 276756d187
Коммит 91507facc0
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -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) {