From 1167cf54e157227073e9571ed3c706fc54f0b95c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 6 Jan 2025 11:30:28 -0800
Subject: [PATCH] Fixed warning C4706: assignment within conditional expression
---
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 e68660dd067d4..e92a1601192d6 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))) {
+ if (label && (label_w = escape_label(label)) != NULL) {
SDL_free(entry);
return NULL;
}