Skip to content

Commit 9a6f70d

Browse files
yunlineslouken
authored andcommitted
tray: Fix wrong fByPositon parameter of SetMenuItemInfoW in SDL_SetTrayEntryLabel
1 parent 38da39c commit 9a6f70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tray/windows/SDL_tray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ void SDL_SetTrayEntryLabel(SDL_TrayEntry *entry, const char *label)
544544
mii.dwTypeData = label_w;
545545
mii.cch = (UINT) SDL_wcslen(label_w);
546546

547-
if (!SetMenuItemInfoW(entry->parent->hMenu, (UINT) entry->id, TRUE, &mii)) {
547+
if (!SetMenuItemInfoW(entry->parent->hMenu, (UINT) entry->id, FALSE, &mii)) {
548548
SDL_SetError("Couldn't update tray entry label");
549549
}
550550

0 commit comments

Comments
 (0)