From 4a6af35bc456acf388c96a2633bbe2284948958d Mon Sep 17 00:00:00 2001 From: Guy Albertelli Date: Sat, 13 Mar 1999 17:03:41 +0000 Subject: [PATCH] Handle null wndPtr for mdi window. --- windows/mdi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/windows/mdi.c b/windows/mdi.c index 10c9ff33ef0..0473ba7eb73 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -1126,6 +1126,13 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient, { case WM_COMMAND: wndPtr = WIN_FindWndPtr(hwndMDIClient); + + if (!wndPtr) { + ERR(mdi,"null wndPtr for mdi window hwndMDIClient=%04x\n", + hwndMDIClient); + return 0; + } + ci = (MDICLIENTINFO*)wndPtr->wExtra; /* check for possible syscommands for maximized MDI child */