Append to the end of the DPA, if insert index is too large.
This commit is contained in:
parent
9fa51e4172
commit
5ffde298fe
|
@ -1879,7 +1879,7 @@ DPA_InsertPtr (const HDPA hdpa, INT i, LPVOID p)
|
||||||
|
|
||||||
if (!hdpa || i < 0) return -1;
|
if (!hdpa || i < 0) return -1;
|
||||||
|
|
||||||
if (i == 0x7fff)
|
if (i >= 0x7fff)
|
||||||
i = hdpa->nItemCount;
|
i = hdpa->nItemCount;
|
||||||
|
|
||||||
if (i >= hdpa->nItemCount)
|
if (i >= hdpa->nItemCount)
|
||||||
|
|
Loading…
Reference in New Issue