We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd79095 commit e816710Copy full SHA for e816710
src/debug.c
@@ -21,6 +21,10 @@
21
#include "allegro5/internal/aintern_thread.h"
22
#include "allegro5/internal/aintern_vector.h"
23
24
+#ifdef ALLEGRO_WINDOWS
25
+#include "allegro5/internal/aintern_wunicode.h"
26
+#endif
27
+
28
#ifdef ALLEGRO_ANDROID
29
#include <unistd.h>
30
#include <android/log.h>
@@ -329,7 +333,9 @@ void _al_trace_suffix(const char *msg, ...)
329
333
}
330
334
#endif
331
335
#ifdef ALLEGRO_WINDOWS
332
- (void) OutputDebugString((LPCTSTR) static_trace_buffer);
336
+ TCHAR *windows_output = _twin_utf8_to_tchar(static_trace_buffer);
337
+ OutputDebugString(windows_output);
338
+ al_free(windows_output);
339
340
static_trace_buffer[0] = '\0';
341
0 commit comments