Fixed some bad ptr occurrence in this class WndProc.
This commit is contained in:
parent
2bce6fea7e
commit
fa9724fde8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue