- Patch by Michael Müller : Also set cch member in GetMenuItemInfo when passing a null pointer.
- Fix two menu tests.

svn path=/trunk/; revision=64788
This commit is contained in:
James Tabor 2014-10-17 16:43:46 +00:00
parent adf80f6d59
commit 1f5f256e01

View file

@ -295,12 +295,12 @@ static BOOL GetMenuItemInfo_common ( HMENU hmenu,
{ // Very strange this fixes a wine test with a crash.
if(lpmii->dwTypeData && lpmii->cch && !(GdiValidateHandle((HGDIOBJ)lpmii->dwTypeData)) )
{
lpmii->cch = 0;
if( unicode)
*((WCHAR *)lpmii->dwTypeData) = 0;
else
*((CHAR *)lpmii->dwTypeData) = 0;
}
lpmii->cch = 0;
}
else
{