Commit c7fbc1b2 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

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

(found, and fixed by Carlos <clozano@andago.com>).
parent 6168b981
......@@ -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;
}
......
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