Force recalculation of menu when calling InsertMenuItem.

oldstable
Gerard Patel 1999-09-28 13:05:54 +00:00 committed by Alexandre Julliard
parent cdff5431e0
commit 6df0694f7c
1 changed files with 1 additions and 0 deletions

View File

@ -1822,6 +1822,7 @@ static MENUITEM *MENU_InsertItem( HMENU hMenu, UINT pos, UINT flags )
menu->items = newItems;
menu->nItems++;
memset( &newItems[pos], 0, sizeof(*newItems) );
menu->Height = 0; /* force size recalculate */
return &newItems[pos];
}