mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 14:16:30 +00:00
[User32]
- 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:
parent
adf80f6d59
commit
1f5f256e01
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue