Explorar el Código

tray, windows: fix logic error from commit 1167cf54e1572

Ozkan Sezer hace 8 meses
padre
commit
8ec576ddab
Se han modificado 1 ficheros con 1 adiciones y 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)) != NULL) {
+    if (label && (label_w = escape_label(label)) == NULL) {
         SDL_free(entry);
         return NULL;
     }