Commit 3c7fddbc authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wldap32: Set count and result to 0 when returning LDAP_NO_RESULTS_RETURNED.

parent 82bcbcc5
...@@ -185,6 +185,8 @@ ULONG CDECL ldap_get_next_page_s( WLDAP32_LDAP *ld, PLDAPSearch search, ...@@ -185,6 +185,8 @@ ULONG CDECL ldap_get_next_page_s( WLDAP32_LDAP *ld, PLDAPSearch search,
if (search->cookie && search->cookie->bv_len == 0) if (search->cookie && search->cookie->bv_len == 0)
{ {
/* end of paged results */ /* end of paged results */
*count = 0;
*results = NULL;
return WLDAP32_LDAP_NO_RESULTS_RETURNED; return WLDAP32_LDAP_NO_RESULTS_RETURNED;
} }
......
...@@ -264,9 +264,7 @@ static void test_ldap_paged_search(void) ...@@ -264,9 +264,7 @@ static void test_ldap_paged_search(void)
res = (void *)0xdeadbeef; res = (void *)0xdeadbeef;
ret = ldap_get_next_page_s( ld, search, NULL, 1, &count, &res ); ret = ldap_get_next_page_s( ld, search, NULL, 1, &count, &res );
ok( ret == LDAP_NO_RESULTS_RETURNED, "got 0x%x\n", ret ); ok( ret == LDAP_NO_RESULTS_RETURNED, "got 0x%x\n", ret );
todo_wine
ok( !res, "expected res == NULL\n" ); ok( !res, "expected res == NULL\n" );
todo_wine
ok( count == 0, "got %u\n", count ); ok( count == 0, "got %u\n", count );
ldap_search_abandon_page( ld, search ); ldap_search_abandon_page( ld, search );
......
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