]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/debughlp.cpp
Better fix
[wxWidgets.git] / src / msw / debughlp.cpp
index 726900c638933d227f54e2c189aed9517d5dfb15..3fd7b88a4b7b018c898a2cb498210141d6498c9d 100644 (file)
@@ -145,7 +145,7 @@ const wxString& wxDbgHelpDLL::GetErrorMessage()
 void wxDbgHelpDLL::LogError(const wxChar *func)
 {
     ::OutputDebugString(wxString::Format(_T("dbghelp: %s() failed: %s\r\n"),
-                        func, wxSysErrorMsg(::GetLastError())));
+                        func, wxSysErrorMsg(::GetLastError())).wx_str());
 }
 
 // ----------------------------------------------------------------------------