mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 02:31:51 +00:00
comctl32: Allocate the correct amount of memory for tab items in TAB_InsertItemT().
This commit is contained in:
parent
48f083b39d
commit
e5c3883c92
|
@ -2644,7 +2644,7 @@ TAB_InsertItemT (TAB_INFO *infoPtr, INT iItem, const TCITEMW *pti, BOOL bUnicode
|
|||
|
||||
TAB_DumpItemExternalT(pti, iItem, bUnicode);
|
||||
|
||||
if (!(item = Alloc(sizeof(TAB_ITEM_SIZE(infoPtr))))) return FALSE;
|
||||
if (!(item = Alloc(TAB_ITEM_SIZE(infoPtr)))) return FALSE;
|
||||
if (DPA_InsertPtr(infoPtr->items, iItem, item) == -1)
|
||||
{
|
||||
Free(item);
|
||||
|
|
Loading…
Reference in a new issue