Skip to content
Snippets Groups Projects
Commit e8a3d071 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Fix parameters for MDI_RestoreFrameMenu in WM_DESTROY msg.

parent 317c9d0f
No related branches found
No related tags found
No related merge requests found
......@@ -921,7 +921,8 @@ static BOOL MDI_RestoreFrameMenu( WND *frameWnd, HWND hChild )
INT nItems = GetMenuItemCount(frameWnd->wIDmenu) - 1;
UINT iId = GetMenuItemID(frameWnd->wIDmenu,nItems) ;
TRACE("frameWnd %p,child %04x\n",frameWnd,hChild);
TRACE("frameWnd %p,(%04x),child %04x,nIt=%d,iId=%d\n",
frameWnd,frameWnd->hwndSelf,hChild,nItems,iId);
if(!(iId == SC_RESTORE || iId == SC_CLOSE) )
return 0;
......@@ -1126,7 +1127,8 @@ LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
goto END;
case WM_DESTROY:
if( ci->hwndChildMaximized ) MDI_RestoreFrameMenu(w, frameWnd->hwndSelf);
if( ci->hwndChildMaximized )
MDI_RestoreFrameMenu(w->parent, ci->hwndChildMaximized);
if((nItems = GetMenuItemCount(ci->hWindowMenu)) > 0)
{
ci->idFirstChild = nItems - 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment