Commit d650c46c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Do not crash if window was not found.

parent 52146f62
...@@ -724,7 +724,7 @@ static void EVENT_ButtonPress( HWND hWnd, XButtonEvent *event ) ...@@ -724,7 +724,7 @@ static void EVENT_ButtonPress( HWND hWnd, XButtonEvent *event )
WIN_ReleaseWndPtr(pWnd); WIN_ReleaseWndPtr(pWnd);
if (buttonNum >= NB_BUTTONS) return; if (buttonNum >= NB_BUTTONS) return;
/* /*
* Get the compatible keystate * Get the compatible keystate
*/ */
...@@ -1857,7 +1857,7 @@ void EVENT_MapNotify( HWND hWnd, XMapEvent *event ) ...@@ -1857,7 +1857,7 @@ void EVENT_MapNotify( HWND hWnd, XMapEvent *event )
void EVENT_UnmapNotify( HWND hWnd, XUnmapEvent *event ) void EVENT_UnmapNotify( HWND hWnd, XUnmapEvent *event )
{ {
WND *pWnd = WIN_FindWndPtr(hWnd); WND *pWnd = WIN_FindWndPtr(hWnd);
if (pWnd->flags & WIN_MANAGED) if (pWnd && (pWnd->flags & WIN_MANAGED))
{ {
EndMenu(); EndMenu();
if( pWnd->dwStyle & WS_VISIBLE ) if( pWnd->dwStyle & WS_VISIBLE )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment