From 9a6f70d75ade1d1d842af2cdc7cd21921a44eef2 Mon Sep 17 00:00:00 2001
From: yunline <[EMAIL REDACTED]>
Date: Mon, 12 May 2025 21:44:05 +0800
Subject: [PATCH] tray: Fix wrong `fByPositon` parameter of SetMenuItemInfoW in
SDL_SetTrayEntryLabel
---
src/tray/windows/SDL_tray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tray/windows/SDL_tray.c b/src/tray/windows/SDL_tray.c
index 18008ee29888c..15021ac79845c 100644
--- a/src/tray/windows/SDL_tray.c
+++ b/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");
}