Fixed warning C4706: assignment within conditional expression

This commit is contained in:
Sam Lantinga 2025-01-06 11:30:28 -08:00
parent 8a9b7ae8d1
commit 1167cf54e1

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))) {
if (label && (label_w = escape_label(label)) != NULL) {
SDL_free(entry);
return NULL;
}