From 5ffde298fe13dd2e05252653824fe9db5ae3a5a0 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Wed, 23 Oct 2002 23:32:19 +0000 Subject: [PATCH] Append to the end of the DPA, if insert index is too large. --- dlls/comctl32/comctl32undoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index ba77f0f28da..9b95e9ea367 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -1879,7 +1879,7 @@ DPA_InsertPtr (const HDPA hdpa, INT i, LPVOID p) if (!hdpa || i < 0) return -1; - if (i == 0x7fff) + if (i >= 0x7fff) i = hdpa->nItemCount; if (i >= hdpa->nItemCount)