From: Vadim Zeitlin Date: Fri, 18 May 2007 16:33:10 +0000 (+0000) Subject: don't give debug messages about WM_MDISETMENU failure if there was no error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d7c4404ac19e495182a9d7e4df601928589dc15?ds=inline don't give debug messages about WM_MDISETMENU failure if there was no error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 7245f39a0f..231ab43b1f 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -1395,7 +1395,11 @@ static void MDISetMenu(wxWindow *win, HMENU hmenuFrame, HMENU hmenuWindow) (WPARAM)hmenuFrame, (LPARAM)hmenuWindow) ) { - wxLogLastError(_T("SendMessage(WM_MDISETMENU)")); +#ifdef __WXDEBUG__ + DWORD err = ::GetLastError(); + if ( err ) + wxLogApiError(_T("SendMessage(WM_MDISETMENU)"), err); +#endif // __WXDEBUG__ } }