mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
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
This commit is contained in:
parent
4d1f146406
commit
10f2fdca23
1 changed files with 3 additions and 3 deletions
|
@ -4415,9 +4415,9 @@ ModifyMenuW(
|
||||||
LPCWSTR lpNewItem)
|
LPCWSTR lpNewItem)
|
||||||
{
|
{
|
||||||
MENUITEMINFOW mii;
|
MENUITEMINFOW mii;
|
||||||
|
memset ( &mii, 0, sizeof(mii) );
|
||||||
mii.cbSize = sizeof(MENUITEMINFOW);
|
mii.cbSize = sizeof(MENUITEMINFOW);
|
||||||
mii.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE;
|
mii.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE;
|
||||||
mii.fType = 0;
|
|
||||||
mii.fState = MFS_ENABLED;
|
mii.fState = MFS_ENABLED;
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
|
@ -4442,10 +4442,10 @@ ModifyMenuW(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(mii.dwTypeData != NULL)
|
/*if(mii.dwTypeData != NULL)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(),0, mii.dwTypeData);
|
HeapFree(GetProcessHeap(),0, mii.dwTypeData);
|
||||||
}
|
}*/
|
||||||
if (*lpNewItem == '\b')
|
if (*lpNewItem == '\b')
|
||||||
{
|
{
|
||||||
mii.fType |= MF_HELP;
|
mii.fType |= MF_HELP;
|
||||||
|
|
Loading…
Reference in a new issue