Do not crash if window was not found.

This commit is contained in:
Dmitry Timoshkov 2000-07-28 20:20:03 +00:00 committed by Alexandre Julliard
parent 52146f62fd
commit d650c46c85

View File

@ -1857,7 +1857,7 @@ void EVENT_MapNotify( HWND hWnd, XMapEvent *event )
void EVENT_UnmapNotify( HWND hWnd, XUnmapEvent *event )
{
WND *pWnd = WIN_FindWndPtr(hWnd);
if (pWnd->flags & WIN_MANAGED)
if (pWnd && (pWnd->flags & WIN_MANAGED))
{
EndMenu();
if( pWnd->dwStyle & WS_VISIBLE )