ModifyMenuA: Zero initialize MENUITEMINFOA (like ModifyMenuW does)
Fixes bug 818 according to Christoph v.W.
Thanks to j_anderw for his patch proposal.
Modified: trunk/reactos/lib/user32/windows/menu.c
_____
Modified: trunk/reactos/lib/user32/windows/menu.c
--- trunk/reactos/lib/user32/windows/menu.c 2005-10-06 13:07:53 UTC
(rev 18294)
+++ trunk/reactos/lib/user32/windows/menu.c 2005-10-06 14:31:18 UTC
(rev 18295)
@@ -4318,6 +4318,7 @@
LPCSTR lpNewItem)
{
MENUITEMINFOA mii;
+ memset( &mii, 0, sizeof(mii) );
mii.cbSize = sizeof(MENUITEMINFOA);
mii.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE;
mii.fType = 0;
Show replies by date