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