[Bug 4250] Regression Switcher Cad Unhandled page fault
Wine Bugs
wine-bugs at winehq.org
Sat Jan 7 01:46:34 CST 2006
http://bugs.winehq.org/show_bug.cgi?id=4250
------- Additional Comments From wijn at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list