Append to the end of the DPA, if insert index is too large.

This commit is contained in:
Dimitrie O. Paun 2002-10-23 23:32:19 +00:00 committed by Alexandre Julliard
parent 9fa51e4172
commit 5ffde298fe
1 changed files with 1 additions and 1 deletions

View File

@ -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)