Fixes off by one error in item insertion.

This commit is contained in:
Huw D M Davies 1999-12-04 03:59:33 +00:00 committed by Alexandre Julliard
parent f95df54d1c
commit 2553976309
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}