From 02d698ecaf9a4174cd542b8a8b324323112e7d0a Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 23 Aug 2021 14:22:28 +0600 Subject: [PATCH] Fix wrong variable reference --- src/unix/unix_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/unix_sdl.c b/src/unix/unix_sdl.c index eda293504..633198736 100644 --- a/src/unix/unix_sdl.c +++ b/src/unix/unix_sdl.c @@ -423,7 +423,7 @@ wchar_t sdl_win_title[512] = L"86Box"; wchar_t* ui_window_title(wchar_t* str) { char* res; - if (!res) return sdl_win_title; + if (!str) return sdl_win_title; if (sizeof(wchar_t) == 1) { SDL_SetWindowTitle(sdl_win, (char*)str);