Commit 25539763 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Fixes off by one error in item insertion.

parent f95df54d
......@@ -748,7 +748,7 @@ HEADER_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* post insert copy */
if (nItem < infoPtr->uNumItem - 1) {
memcpy (&infoPtr->items[nItem+1], &oldItems[nItem],
(infoPtr->uNumItem - nItem) * sizeof(HEADER_ITEM));
(infoPtr->uNumItem - nItem - 1) * sizeof(HEADER_ITEM));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment