Commit 29ef801b authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

DPA_Search: Handle DPAS_INSERTBEFORE on empty list.

parent a098c82a
......@@ -2179,6 +2179,7 @@ DPA_Search (const HDPA hdpa, LPVOID pFind, INT nStart,
}
if (uOptions & DPAS_INSERTBEFORE) {
if (r == -1) r = 0;
TRACE("-- ret=%d\n", r);
return r;
}
......
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