mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
ModifyMenuA: Zero initialize MENUITEMINFOA (like ModifyMenuW does)
Fixes bug 818 according to Christoph v.W. Thanks to j_anderw for his patch proposal. svn path=/trunk/; revision=18295
This commit is contained in:
parent
93a2fb4cd2
commit
23dc71c784
1 changed files with 1 additions and 0 deletions
|
@ -4318,6 +4318,7 @@ ModifyMenuA(
|
|||
LPCSTR lpNewItem)
|
||||
{
|
||||
MENUITEMINFOA mii;
|
||||
memset( &mii, 0, sizeof(mii) );
|
||||
mii.cbSize = sizeof(MENUITEMINFOA);
|
||||
mii.fMask = MIIM_FTYPE | MIIM_STRING | MIIM_STATE;
|
||||
mii.fType = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue