No need to increment item size, it's already adjusted by DPA_SetPtr

(found, and fixed by Carlos <clozano@andago.com>).
This commit is contained in:
Dimitrie O. Paun 2002-10-21 19:49:44 +00:00 committed by Alexandre Julliard
parent 6168b98176
commit c7fbc1b2c9
1 changed files with 0 additions and 1 deletions

View File

@ -1886,7 +1886,6 @@ DPA_InsertPtr (const HDPA hdpa, INT i, LPVOID p)
if (!DPA_SetPtr(hdpa, hdpa->nItemCount, 0)) return -1;
memmove (hdpa->ptrs + i + 1, hdpa->ptrs + i, (hdpa->nItemCount - i - 1) * sizeof(LPVOID));
hdpa->ptrs[i] = p;
hdpa->nItemCount++;
return i;
}