From c0504ca5f6e684a2508bf4774339b091b72b6631 Mon Sep 17 00:00:00 2001 From: "Guy L. Albertelli" Date: Wed, 10 May 2000 21:39:00 +0000 Subject: [PATCH] Verify the menu handle is non-zero prior to use. --- windows/mdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/mdi.c b/windows/mdi.c index dd64a748386..c143aa3f7f5 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -236,7 +236,7 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame, if( ci->hwndChildMaximized && hmenuFrame && hmenuFrame!=oldFrameMenu ) MDI_RestoreFrameMenu(w->parent, ci->hwndChildMaximized ); - if( hmenuWindow && hmenuWindow!=ci->hWindowMenu ) + if( hmenuWindow && ci->hWindowMenu && hmenuWindow!=ci->hWindowMenu ) { /* delete menu items from ci->hWindowMenu * and add them to hmenuWindow */