From 8ec576ddabdc7edfd68e7a8a3214e84e4026328d Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 7 Jan 2025 10:15:40 +0300 Subject: [PATCH] tray, windows: fix logic error from commit 1167cf54e1572 --- src/tray/windows/SDL_tray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tray/windows/SDL_tray.c b/src/tray/windows/SDL_tray.c index f61fa04d8e..11273d4490 100644 --- a/src/tray/windows/SDL_tray.c +++ b/src/tray/windows/SDL_tray.c @@ -375,7 +375,7 @@ SDL_TrayEntry *SDL_InsertTrayEntryAt(SDL_TrayMenu *menu, int pos, const char *la wchar_t *label_w = NULL; - if (label && (label_w = escape_label(label)) != NULL) { + if (label && (label_w = escape_label(label)) == NULL) { SDL_free(entry); return NULL; }