From 718d385322831ca54d1d9b4e4d0e2b35fa95fa9e Mon Sep 17 00:00:00 2001 From: "angelon%netscape.com" Date: Thu, 5 Dec 2002 20:13:06 +0000 Subject: [PATCH] Fix for Blackflag Bug 614157 Gecko view window crashes if clicked too quickly after opened git-svn-id: svn://10.0.0.236/branches/ANGELON_MOZ12_BRANCH@134848 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/windows/nsWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index c396678bc41..57ff8b8455e 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -6675,7 +6675,7 @@ nsWindow::IMEMouseHandling(PRUint32 aEventType, PRInt32 aAction, LPARAM lParam) HWND parentWnd = ::GetParent(mWnd); if (parentWnd) { nsWindow* parentWidget = GetNSWindowPtr(parentWnd); - if (parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) { + if (parentWidget && parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) { if (parentWidget->IMECompositionHitTest(aEventType, &ptPos)) if (parentWidget->HandleMouseActionOfIME(aAction, &ptPos)) return PR_TRUE;