diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 5eecbc0bcb7..1391ce1d836 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -853,7 +853,7 @@ TREEVIEW_InsertItem32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam) memcpy (&infoPtr->items[0], &oldItems[0], infoPtr->uNumPtrsAlloced/2 * sizeof(TREEVIEW_ITEM)); memcpy (&infoPtr->freeList[0], &oldfreeList[0], - infoPtr->uNumPtrsAlloced>>6 * sizeof(INT32)); + (infoPtr->uNumPtrsAlloced>>6) * sizeof(INT32)); HeapFree (GetProcessHeap (), 0, oldItems); HeapFree (GetProcessHeap (), 0, oldfreeList);