Michael Müller : user32: Also set cch member in GetMenuItemInfo when passing a null pointer.
Module: wine Branch: master Commit: 997e197f23144fd53af6fceeec471411996ed6a8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=997e197f23144fd53af6fceeec... Author: Michael Müller <michael(a)fds-team.de> Date: Sun Sep 7 20:14:36 2014 +0200 user32: Also set cch member in GetMenuItemInfo when passing a null pointer. --- dlls/user32/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c index 93bee49..9e05dd4 100644 --- a/dlls/user32/menu.c +++ b/dlls/user32/menu.c @@ -4583,12 +4583,12 @@ static BOOL GetMenuItemInfo_common ( HMENU hmenu, UINT item, BOOL bypos, if ((lpmii->fMask & (MIIM_TYPE|MIIM_STRING))) { if( !menu->text ) { if(lpmii->dwTypeData && lpmii->cch) { - lpmii->cch = 0; if( unicode) *((WCHAR *)lpmii->dwTypeData) = 0; else *((CHAR *)lpmii->dwTypeData) = 0; } + lpmii->cch = 0; } else { int len; if (unicode)
participants (1)
-
Alexandre Julliard