wldap32: Implement ldap_search_abandon_page.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2020-04-17 17:11:57 +08:00 committed by Alexandre Julliard
parent 6e459129e7
commit 35b7856d50
1 changed files with 23 additions and 2 deletions

View File

@ -262,10 +262,31 @@ ULONG CDECL ldap_parse_page_controlW( WLDAP32_LDAP *ld, PLDAPControlW *ctrls,
ULONG CDECL ldap_search_abandon_page( WLDAP32_LDAP *ld, PLDAPSearch search )
{
FIXME( "(%p, %p)\n", ld, search );
#ifdef HAVE_LDAP
LDAPControlW **ctrls;
TRACE( "(%p, %p)\n", ld, search );
if (!ld || !search) return ~0u;
strfreeW( search->dn );
strfreeW( search->filter );
strarrayfreeW( search->attrs );
ctrls = search->serverctrls;
controlfreeW( ctrls[0] ); /* page control */
ctrls++;
while (*ctrls) controlfreeW( *ctrls++ );
heap_free( search->serverctrls );
controlarrayfreeW( search->clientctrls );
if (search->cookie)
ber_bvfree( search->cookie );
heap_free( search );
if (!ld) return ~0u;
return WLDAP32_LDAP_SUCCESS;
#else
return WLDAP32_LDAP_NOT_SUPPORTED;
#endif
}
PLDAPSearch CDECL ldap_search_init_pageA( WLDAP32_LDAP *ld, PCHAR dn, ULONG scope,