Mon, 29 Jan 2024 12:19:21 +0100
fix wrong menu item list label string used
ui/winui/appmenu.cpp | file | annotate | diff | comparison | revisions |
--- a/ui/winui/appmenu.cpp Mon Jan 29 12:15:19 2024 +0100 +++ b/ui/winui/appmenu.cpp Mon Jan 29 12:19:21 2024 +0100 @@ -193,7 +193,7 @@ char *menuItemLabel = (char*) (getvalue ? getvalue(elm, 0) : elm); MenuFlyoutItem mi = MenuFlyoutItem(); - wchar_t* wlabel = str2wstr((char*)elm, NULL); + wchar_t* wlabel = str2wstr(menuItemLabel ? menuItemLabel : "", NULL); mi.Text(wlabel); free(wlabel);