فهرست منبع

Fixed warning C4706: assignment within conditional expression

Sam Lantinga 3 ماه پیش
والد
کامیت
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;
 
-    if (label && !(label_w = escape_label(label))) {
+    if (label && (label_w = escape_label(label)) != NULL) {
         SDL_free(entry);
         return NULL;
     }