From aaf765a54931a3add43bcf68cec8c80f0b66b18a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 20 Nov 2001 01:28:33 +0000 Subject: [PATCH] fixed erroneous debug error message git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 9aeb9eefd5..6c7b38718b 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -616,8 +616,9 @@ bool wxTopLevelWindowMSW::EnableCloseButton(bool enable) // enabling/disabling the close item from it also automatically // disables/enables the close title bar button - if ( !::EnableMenuItem(hmenu, SC_CLOSE, - MF_BYCOMMAND | (enable ? MF_ENABLED : MF_GRAYED)) ) + if ( ::EnableMenuItem(hmenu, SC_CLOSE, + MF_BYCOMMAND | + (enable ? MF_ENABLED : MF_GRAYED)) == -1 ) { wxLogLastError(_T("EnableMenuItem(SC_CLOSE)")); -- 2.45.2