From e8a3d0713f4ba9dba5d7753e65dea94e3c024661 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sun, 23 Jan 2000 03:19:44 +0000 Subject: [PATCH] Fix parameters for MDI_RestoreFrameMenu in WM_DESTROY msg. --- windows/mdi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows/mdi.c b/windows/mdi.c index 6b85a6f2bc8..96a5282f3e4 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -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;