From 10f2fdca23c32e5a38f1c5f00f78580401a2a1d8 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Tue, 13 Sep 2005 23:04:32 +0000 Subject: [PATCH] zero out the struct and disable code that has no connection with reality - I'm thinking MIIM_STRING should be removed from flags also, but I have not tested with that change. svn path=/trunk/; revision=17843 --- reactos/lib/user32/windows/menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/user32/windows/menu.c b/reactos/lib/user32/windows/menu.c index 0ee2d61086d..ca39b7df77d 100644 --- a/reactos/lib/user32/windows/menu.c +++ b/reactos/lib/user32/windows/menu.c @@ -4415,9 +4415,9 @@ ModifyMenuW( LPCWSTR lpNewItem) { MENUITEMINFOW mii; + memset ( &mii, 0, sizeof(mii) ); mii.cbSize = sizeof(MENUITEMINFOW); mii.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE; - mii.fType = 0; mii.fState = MFS_ENABLED; UNIMPLEMENTED; @@ -4442,10 +4442,10 @@ ModifyMenuW( } else { - if(mii.dwTypeData != NULL) + /*if(mii.dwTypeData != NULL) { HeapFree(GetProcessHeap(),0, mii.dwTypeData); - } + }*/ if (*lpNewItem == '\b') { mii.fType |= MF_HELP;