Fixed some bad ptr occurrence in this class WndProc.

This commit is contained in:
Eric Pouech 1999-07-23 19:21:56 +00:00 committed by Alexandre Julliard
parent 2bce6fea7e
commit fa9724fde8
1 changed files with 14 additions and 7 deletions

View File

@ -1024,11 +1024,18 @@ LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
LPCREATESTRUCTA cs;
MDICLIENTINFO *ci;
RECT rect;
WND *w = WIN_FindWndPtr(hwnd);
WND *frameWnd = WIN_LockWndPtr(w->parent);
WND *w, *frameWnd;
INT nItems;
LRESULT retvalue;
if ( ( w = WIN_FindWndPtr(hwnd) ) == NULL )
return 0;
if ( ( frameWnd = WIN_LockWndPtr(w->parent) ) == NULL ) {
WIN_ReleaseWndPtr(w);
return 0;
}
ci = (MDICLIENTINFO *) w->wExtra;
switch (message)