comctl32: Allocate the correct amount of memory for tab items in TAB_InsertItemT().
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 12 Apr 2011 15:39:19 +0000 (17:39 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 12 Apr 2011 15:42:17 +0000 (17:42 +0200)
dlls/comctl32/tab.c

index 6744ed72454bcdc7e12d246312d018b4f7864598..a9a0548962b77330aca55ead60fab0efd88be223 100644 (file)
@@ -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);