Commit 6df0694f authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Force recalculation of menu when calling InsertMenuItem.

parent cdff5431
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment