Don't use MenuCleanupRosMenuItemInfo for an array of Items allocated on the heap!
authorColin Finck <colin@reactos.org>
Sat, 14 Jun 2008 00:00:20 +0000 (00:00 +0000)
committerColin Finck <colin@reactos.org>
Sat, 14 Jun 2008 00:00:20 +0000 (00:00 +0000)
commit427bda68a51c1f7107d78a8358d19adb1dacc1c0
treec1f999f7394f949e68b3cf061e484436862e61c2
parentaa42a19f4089b244fac036cde957aa364a774956
Don't use MenuCleanupRosMenuItemInfo for an array of Items allocated on the heap!
This function is meant to be used for a single menu item info and just frees the memory allocated for dwTypeInfo.

Replaced this with a simple HeapFree call to free the memory for the whole array allocated in MenuGetAllRosMenuItemInfo.
Fixes a heap corruption discovered by encoded.

See issue #3349 for more details.

svn path=/trunk/; revision=33959
reactos/dll/win32/user32/windows/menu.c