ULONG CDECL ldap_parse_resultA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *result, ULONG *retcode, PCHAR *matched, PCHAR *error, PCHAR **referrals, PLDAPControlA **serverctrls, BOOLEAN free ) { ULONG ret = LDAP_NOT_SUPPORTED; #ifdef HAVE_LDAP WCHAR **matchedW = NULL, **errorW = NULL, **referralsW = NULL; LDAPControlW **serverctrlsW = NULL; TRACE( "(%p, %p, %p, %p, %p, %p, %p, 0x%02x)\n", ld, result, retcode, matched, error, referrals, serverctrls, free ); if (!ld) return ~0UL; ret = ldap_parse_resultW( ld, result, retcode, matchedW, errorW, &referralsW, &serverctrlsW, free ); matched = strarrayWtoA( matchedW ); error = strarrayWtoA( errorW ); *referrals = strarrayWtoA( referralsW ); *serverctrls = controlarrayWtoA( serverctrlsW ); ldap_value_freeW( matchedW ); ldap_value_freeW( errorW ); ldap_value_freeW( referralsW ); ldap_controls_freeW( serverctrlsW ); #endif return ret; }
/*********************************************************************** * ldap_free_controlsW (WLDAP32.@) * * Free an array of LDAPControl structures. * * PARAMS * controls [I] Array of LDAPControl structures to free. * * RETURNS * LDAP_SUCCESS * * NOTES * Obsolete, use ldap_controls_freeW. */ ULONG CDECL ldap_free_controlsW( LDAPControlW **controls ) { return ldap_controls_freeW( controls ); }