fix wrong menu item list label string used newapi

Mon, 29 Jan 2024 12:19:21 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 29 Jan 2024 12:19:21 +0100
branch
newapi
changeset 237
8649c6a29e6d
parent 236
ee794586f51b
child 238
56621137b8e1

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);
 

mercurial