Handle null wndPtr for mdi window.

This commit is contained in:
Guy Albertelli 1999-03-13 17:03:41 +00:00 committed by Alexandre Julliard
parent d6ade697e1
commit 4a6af35bc4
1 changed files with 7 additions and 0 deletions

View File

@ -1126,6 +1126,13 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient,
{ {
case WM_COMMAND: case WM_COMMAND:
wndPtr = WIN_FindWndPtr(hwndMDIClient); wndPtr = WIN_FindWndPtr(hwndMDIClient);
if (!wndPtr) {
ERR(mdi,"null wndPtr for mdi window hwndMDIClient=%04x\n",
hwndMDIClient);
return 0;
}
ci = (MDICLIENTINFO*)wndPtr->wExtra; ci = (MDICLIENTINFO*)wndPtr->wExtra;
/* check for possible syscommands for maximized MDI child */ /* check for possible syscommands for maximized MDI child */