tray, windows: fix logic error from commit 1167cf54e1
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

This commit is contained in:
Ozkan Sezer
2025-01-07 10:15:40 +03:00
parent 748f0b3201
commit 8ec576ddab
+1 -1
View File
@@ -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;
}