55 TRACE(
"(%p, %s, %s, %s, 0x%02x, %p, %p, %p)\n", ld,
debugstr_a(dn),
57 serverctrls, clientctrls,
message );
67 if (!newrdnW)
goto exit;
70 newparentW =
strAtoW( newparent );
71 if (!newparentW)
goto exit;
74 serverctrlsW = controlarrayAtoW( serverctrls );
75 if (!serverctrlsW)
goto exit;
78 clientctrlsW = controlarrayAtoW( clientctrls );
79 if (!clientctrlsW)
goto exit;
83 serverctrlsW, clientctrlsW,
message );
89 controlarrayfreeW( serverctrlsW );
90 controlarrayfreeW( clientctrlsW );
131 TRACE(
"(%p, %s, %s, %s, 0x%02x, %p, %p, %p)\n", ld,
debugstr_w(dn),
133 serverctrls, clientctrls,
message );
143 if (!newrdnU)
goto exit;
146 newparentU =
strWtoU( newparent );
147 if (!newparentU)
goto exit;
150 serverctrlsU = controlarrayWtoU( serverctrls );
151 if (!serverctrlsU)
goto exit;
154 clientctrlsU = controlarrayWtoU( clientctrls );
155 if (!clientctrlsU)
goto exit;
159 delete, serverctrlsU, clientctrlsU, (
int *)
message ));
165 controlarrayfreeU( serverctrlsU );
166 controlarrayfreeU( clientctrlsU );
190 serverctrls, clientctrls );
200 if (!newrdnW)
goto exit;
203 newparentW =
strAtoW( newparent );
204 if (!newparentW)
goto exit;
207 serverctrlsW = controlarrayAtoW( serverctrls );
208 if (!serverctrlsW)
goto exit;
211 clientctrlsW = controlarrayAtoW( clientctrls );
212 if (!clientctrlsW)
goto exit;
216 serverctrlsW, clientctrlsW );
222 controlarrayfreeW( serverctrlsW );
223 controlarrayfreeW( clientctrlsW );
259 serverctrls, clientctrls );
269 if (!newrdnU)
goto exit;
272 newparentU =
strWtoU( newparent );
273 if (!newparentU)
goto exit;
276 serverctrlsU = controlarrayWtoU( serverctrls );
277 if (!serverctrlsU)
goto exit;
280 clientctrlsU = controlarrayWtoU( clientctrls );
281 if (!clientctrlsU)
goto exit;
285 delete, serverctrlsU, clientctrlsU ));
291 controlarrayfreeU( serverctrlsU );
292 controlarrayfreeU( clientctrlsU );
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static UINT map_error(DWORD error)
static LPWSTR strAtoW(const char *str)
ULONG CDECL ldap_rename_ext_sA(WLDAP32_LDAP *ld, PCHAR dn, PCHAR newrdn, PCHAR newparent, INT delete, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls)
ULONG CDECL ldap_rename_extW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newrdn, PWCHAR newparent, INT delete, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
ULONG CDECL ldap_rename_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newrdn, PWCHAR newparent, INT delete, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
ULONG CDECL ldap_rename_extA(WLDAP32_LDAP *ld, PCHAR dn, PCHAR newrdn, PCHAR newparent, INT delete, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls, ULONG *message)
@ WLDAP32_LDAP_PARAM_ERROR
@ WLDAP32_LDAP_NOT_SUPPORTED
static void strfreeU(char *str)
static void strfreeW(LPWSTR str)
static char * strWtoU(LPCWSTR str)