From 4b2402db2e50e54e28d3037bdf4664b2be9b23b2 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 3 Sep 2021 19:45:28 +0200 Subject: [PATCH] And fixed it again. --- src/86box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/86box.c b/src/86box.c index 7c9d919d0..eca8544a5 100644 --- a/src/86box.c +++ b/src/86box.c @@ -1092,7 +1092,7 @@ pc_close(thread_t *ptr) #ifdef __APPLE__ static void _ui_window_title(void *s) { - ui_window_title((const char *) s); + ui_window_title((const wchar_t *) s); free(s); } #endif @@ -1128,7 +1128,7 @@ pc_run(void) swprintf(temp, sizeof_w(temp), mouse_msg[!!mouse_capture], fps); #ifdef __APPLE__ /* Needed due to modifying the UI on the non-main thread is a big no-no. */ - dispatch_async_f(dispatch_get_main_queue(), strdup((const char *) temp), _ui_window_title); + dispatch_async_f(dispatch_get_main_queue(), wcsdup((const wchar_t *) temp), _ui_window_title); #else ui_window_title(temp); #endif