Commit 5ffde298 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

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

parent 9fa51e41
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment