comctl32: Allocate the right wstr size for the TVN_GETDISPINFOW reply.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=25264 Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0d1029e829
commit
d558896fff
|
@ -754,7 +754,7 @@ TREEVIEW_UpdateDispInfo(const TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item,
|
||||||
else {
|
else {
|
||||||
int len = max(lstrlenW(callback.item.pszText) + 1,
|
int len = max(lstrlenW(callback.item.pszText) + 1,
|
||||||
TEXT_CALLBACK_SIZE);
|
TEXT_CALLBACK_SIZE);
|
||||||
LPWSTR newText = heap_realloc(item->pszText, len);
|
LPWSTR newText = heap_realloc(item->pszText, len*sizeof(WCHAR));
|
||||||
|
|
||||||
TRACE("returned wstr %s, len=%d\n",
|
TRACE("returned wstr %s, len=%d\n",
|
||||||
debugstr_w(callback.item.pszText), len);
|
debugstr_w(callback.item.pszText), len);
|
||||||
|
|
Loading…
Reference in New Issue