Unix: Use proper parentheses to cast the result, not the flags, fixes #3994.

This commit is contained in:
OBattler
2024-01-05 13:01:17 +01:00
parent e64b7e837c
commit 13d582b56f

View File

@@ -644,10 +644,8 @@ ui_msgbox_header(int flags, void *header, void *message)
SDL_MessageBoxData msgdata;
SDL_MessageBoxButtonData msgbtn;
#if 0
if (!header)
header = (void *) (flags & MBX_ANSI) ? "86Box" : L"86Box";
#endif
header = (void *) ((flags & MBX_ANSI) ? "86Box" : L"86Box");
if (header <= (void *) 7168)
header = (void *) plat_get_string((uintptr_t) header);
if (message <= (void *) 7168)