MGR: We need to cast mb_str() calls when using fprintf or some other C Runtime function.

This commit is contained in:
Rom Walton 2014-03-06 12:14:00 -05:00
parent a3bccdb438
commit 9a7e5ebb3a
1 changed files with 3 additions and 1 deletions

View File

@ -571,6 +571,7 @@ void CBOINCGUIApp::OnEndSession(wxCloseEvent& ) {
void CBOINCGUIApp::OnFatalException() {
#ifdef wxUSE_DEBUGREPORT
wxDebugReportCompress* report = new wxDebugReportCompress;
if (report->IsOk()) {
@ -581,13 +582,14 @@ void CBOINCGUIApp::OnFatalException() {
fprintf(
stderr,
"ASSERT: Report generated in \"%s\".\n",
report->GetCompressedFileName().mb_str()
(const char*)report->GetCompressedFileName().mb_str()
);
report->Reset();
}
}
delete report;
#endif
}
#endif