http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f083b
)
comctl32: Allocate the correct amount of memory for tab items in TAB_InsertItemT().
author
Henri Verbeet
<hverbeet@codeweavers.com>
Tue, 12 Apr 2011 15:39:19 +0000
(17:39 +0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Tue, 12 Apr 2011 15:42:17 +0000
(17:42 +0200)
dlls/comctl32/tab.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/comctl32/tab.c
b/dlls/comctl32/tab.c
index 6744ed72454bcdc7e12d246312d018b4f7864598..a9a0548962b77330aca55ead60fab0efd88be223 100644
(file)
--- 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);