[2/2] comctl32/tab: Use dpa to store item data

Henri Verbeet hverbeet at gmail.com
Tue Apr 12 09:00:17 CDT 2011

On 12 April 2011 07:13, Nikolay Sivov <bunglehead at gmail.com> wrote:
> The problem is that I won't be able to patch anything for a couple of
> weeks cause I don't have build system with me, so please commit
> reverting patch if a fix is not obvious.
Does the attached patch make sense to you?
-------------- next part --------------
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)

More information about the wine-devel mailing list