commit | 5ffde298fe13dd2e05252653824fe9db5ae3a5a0 | [log] [tgz] |
---|---|---|
author | Dimitrie O. Paun <dpaun@rogers.com> | Wed Oct 23 23:32:19 2002 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Oct 23 23:32:19 2002 +0000 |
tree | 8e6239cf8342bb58ff3b2168debf9adea8dbcc45 | |
parent | 9fa51e4172fa1834c6c3a2f04d8875ed09a8559f [diff] |
Append to the end of the DPA, if insert index is too large.
diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index ba77f0f..9b95e9e 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c
@@ -1879,7 +1879,7 @@ if (!hdpa || i < 0) return -1; - if (i == 0x7fff) + if (i >= 0x7fff) i = hdpa->nItemCount; if (i >= hdpa->nItemCount)