Improved error handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3294,7 +3294,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId,
|
||||
{
|
||||
vError = ::WinGetLastError(vHabmain);
|
||||
sError = wxPMErrorToStr(vError);
|
||||
wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str());
|
||||
wxLogError(_T("Unable to set current color table (1). Error: %s\n"), sError.c_str());
|
||||
}
|
||||
//
|
||||
// Set the color table to RGB mode
|
||||
@@ -3309,7 +3309,7 @@ bool wxWindowOS2::OS2OnDrawItem( int vId,
|
||||
{
|
||||
vError = ::WinGetLastError(vHabmain);
|
||||
sError = wxPMErrorToStr(vError);
|
||||
wxLogError(_T("Unable to set current color table. Error: %s\n"), sError.c_str());
|
||||
wxLogError(_T("Unable to set current color table (2). Error: %s\n"), sError.c_str());
|
||||
}
|
||||
|
||||
wxCHECK( pMenuItem->IsKindOf(CLASSINFO(wxMenuItem)), FALSE );
|
||||
|
Reference in New Issue
Block a user