[PATCH 1/1] comctl32: Allocate the correct amount of memory for tab items in TAB_InsertItemT().

Henri Verbeet hverbeet at codeweavers.com
Tue Apr 12 10:39:19 CDT 2011


This fixes a regression introduced by commit
82258f4f2580a591d7a9940204b194b7f833c09d.
---
 dlls/comctl32/tab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 6744ed7..a9a0548 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -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);
-- 
1.7.3.4




More information about the wine-patches mailing list