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

Alexandre Julliard julliard at winehq.org
Tue Apr 12 11:07:39 CDT 2011


Module: wine
Branch: master
Commit: e5c3883c923d345848315a39a090607bdddac936
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e5c3883c923d345848315a39a090607bdddac936

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Apr 12 17:39:19 2011 +0200

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

---

 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);




More information about the wine-cvs mailing list