Explorar o código

Fixed warning C4706: assignment within conditional expression

Sam Lantinga hai 6 meses
pai
achega
1167cf54e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/tray/windows/SDL_tray.c

+ 1 - 1
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;
     }