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

@ -1021,16 +1021,23 @@ static void MDI_UpdateFrameText( WND *frameWnd, HWND hClient,
LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam )
{
LPCREATESTRUCTA cs;
LPCREATESTRUCTA cs;
MDICLIENTINFO *ci;
RECT rect;
WND *w = WIN_FindWndPtr(hwnd);
WND *frameWnd = WIN_LockWndPtr(w->parent);
INT nItems;
LRESULT retvalue;
ci = (MDICLIENTINFO *) w->wExtra;
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)
{
case WM_CREATE: