Some search errors are returned from ExecuteSearch(), but empty search results definitely result in S_OK from ExecuteSearch() and S_ADS_NOMORE_ROWS from subsequent GetFirstRow()/GetNextRow().
Try 2 adds a test, and doesn't report all errors through GetFirstRow()/GetNextRow().
Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- dlls/adsldp/adsldp.c | 18 ++++++++++++++---- dlls/adsldp/tests/ldap.c | 7 +++++++ 2 files changed, 21 insertions(+), 4 deletions(-)