mirror of https://github.com/libsdl-org/SDL.git
tray, windows: fix logic error from commit 1167cf54e1
This commit is contained in:
parent
748f0b3201
commit
8ec576ddab
|
|
@ -375,7 +375,7 @@ SDL_TrayEntry *SDL_InsertTrayEntryAt(SDL_TrayMenu *menu, int pos, const char *la
|
||||||
|
|
||||||
wchar_t *label_w = NULL;
|
wchar_t *label_w = NULL;
|
||||||
|
|
||||||
if (label && (label_w = escape_label(label)) != NULL) {
|
if (label && (label_w = escape_label(label)) == NULL) {
|
||||||
SDL_free(entry);
|
SDL_free(entry);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue