Commit e5c3883c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

comctl32: Allocate the correct amount of memory for tab items in TAB_InsertItemT().

parent 48f083b3
......@@ -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);
......
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