mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-06 08:02:50 +02:00
Fix wxWidgets assertion error on Logging...
menu.
This commit is contained in:
committed by
Rafael Kitover
parent
c886b6a16d
commit
855db11d98
@@ -1294,8 +1294,10 @@ bool debugWaitSocket()
|
|||||||
void log(const char* defaultMsg, ...)
|
void log(const char* defaultMsg, ...)
|
||||||
{
|
{
|
||||||
va_list valist;
|
va_list valist;
|
||||||
|
char buf[2048];
|
||||||
va_start(valist, defaultMsg);
|
va_start(valist, defaultMsg);
|
||||||
wxString msg = wxString::Format(defaultMsg, valist);
|
vsnprintf(buf, 2048, defaultMsg, valist);
|
||||||
|
wxString msg = wxString(buf, wxConvLibc);
|
||||||
va_end(valist);
|
va_end(valist);
|
||||||
wxGetApp().log.append(msg);
|
wxGetApp().log.append(msg);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user