ui/winui/appmenu.cpp

branch
newapi
changeset 237
8649c6a29e6d
parent 236
ee794586f51b
child 238
56621137b8e1
--- 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);
 

mercurial