From c7fbc1b2c9025f77dfd452fa532266d76e4ed4a8 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Mon, 21 Oct 2002 19:49:44 +0000 Subject: [PATCH] No need to increment item size, it's already adjusted by DPA_SetPtr (found, and fixed by Carlos ). --- dlls/comctl32/comctl32undoc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index c82a1b8d0e1..666a1904ff8 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -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; }