http://bugs.winehq.org/show_bug.cgi?id=4250
------- Additional Comments From wijn@wanadoo.nl 2006-07-01 01:46 ------- Simply reverting the change would generate test failures. Can you try this patch?
--- wine/dlls/user/menu.c 2006-01-04 19:02:33.000000000 +0100 +++ mywine/dlls/user/menu.c 2006-01-07 08:42:04.000000000 +0100 @@ -3295,7 +3295,7 @@ INT WINAPI GetMenuStringA( SetLastError( ERROR_MENU_ITEM_NOT_FOUND); return 0; } - if (!str || !nMaxSiz) return strlenW(item->text); + if (!str || !nMaxSiz) return item->text ? strlenW(item->text) : 0; if (!WideCharToMultiByte( CP_ACP, 0, item->text, -1, str, nMaxSiz, NULL, NULL )) str[nMaxSiz-1] = 0; TRACE("returning '%s'\n", str );
Rein.