Procházet zdrojové kódy

tray: Fix wrong `fByPositon` parameter of SetMenuItemInfoW in SDL_SetTrayEntryLabel

(cherry picked from commit 9a6f70d75ade1d1d842af2cdc7cd21921a44eef2)
yunline před 4 měsíci
rodič
revize
64f728ec48
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/tray/windows/SDL_tray.c

+ 1 - 1
src/tray/windows/SDL_tray.c

@@ -544,7 +544,7 @@ void SDL_SetTrayEntryLabel(SDL_TrayEntry *entry, const char *label)
     mii.dwTypeData = label_w;
     mii.cch = (UINT) SDL_wcslen(label_w);
 
-    if (!SetMenuItemInfoW(entry->parent->hMenu, (UINT) entry->id, TRUE, &mii)) {
+    if (!SetMenuItemInfoW(entry->parent->hMenu, (UINT) entry->id, FALSE, &mii)) {
         SDL_SetError("Couldn't update tray entry label");
     }