소스 검색

tray, windows: fix logic error from commit 1167cf54e1572

Ozkan Sezer 8 달 전
부모
커밋
8ec576ddab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }