Author: jimtabor
Date: Fri Oct 17 16:43:46 2014
New Revision: 64788
URL:
http://svn.reactos.org/svn/reactos?rev=64788&view=rev
Log:
[User32]
- Patch by Michael Müller : Also set cch member in GetMenuItemInfo when passing a null
pointer.
- Fix two menu tests.
Modified:
trunk/reactos/win32ss/user/user32/windows/menu.c
Modified: trunk/reactos/win32ss/user/user32/windows/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/menu.c [iso-8859-1] Fri Oct 17 16:43:46
2014
@@ -295,12 +295,12 @@
{ // 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
{