From: Vadim Zeitlin Date: Sun, 24 Feb 2008 23:38:57 +0000 (+0000) Subject: use wxLogLastError() to show the last error value when reporting failure to create... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d801d09f9fffbc330c31a0c5cb8707673376b01 use wxLogLastError() to show the last error value when reporting failure to create a control (replaces patch 1890940) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/control.cpp b/src/msw/control.cpp index fa9989fb1c..d4ae78000a 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -153,11 +153,11 @@ bool wxControl::MSWCreateControl(const wxChar *classname, if ( !m_hWnd ) { #ifdef __WXDEBUG__ - wxFAIL_MSG(wxString::Format - ( - _T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"), - classname, (unsigned int)style, (unsigned int)exstyle - )); + wxLogLastError(wxString::Format + ( + _T("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx)"), + classname, style, exstyle + )); #endif // __WXDEBUG__ return false;