projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d1f146
)
zero out the struct and disable code that has no connection with reality - I'm thinki...
author
Royce Mitchell III
<royce3@ev1.net>
Tue, 13 Sep 2005 23:04:32 +0000
(23:04 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Tue, 13 Sep 2005 23:04:32 +0000
(23:04 +0000)
svn path=/trunk/; revision=17843
reactos/lib/user32/windows/menu.c
patch
|
blob
|
history
diff --git
a/reactos/lib/user32/windows/menu.c
b/reactos/lib/user32/windows/menu.c
index
0ee2d61
..
ca39b7d
100644
(file)
--- 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;