浏览代码

Fixed warning C4706: assignment within conditional expression

Sam Lantinga 6 月之前
父节点
当前提交
1167cf54e1
共有 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;
     wchar_t *label_w = NULL;
 
 
-    if (label && !(label_w = escape_label(label))) {
+    if (label && (label_w = escape_label(label)) != NULL) {
         SDL_free(entry);
         SDL_free(entry);
         return NULL;
         return NULL;
     }
     }