DPA_Search: Handle DPAS_INSERTBEFORE on empty list.

This commit is contained in:
Uwe Bonnes 2003-05-15 23:55:12 +00:00 committed by Alexandre Julliard
parent a098c82aac
commit 29ef801b40
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}