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
This commit is contained in:
Vadim Zeitlin
2007-05-18 16:33:10 +00:00
parent b38e5da178
commit 0d7c4404ac

View File

@@ -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__
}
}