Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c8148d67
Commit
c8148d67
authored
Mar 30, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Return ~0u from ldap_modrdn* for any error.
parent
0256f131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modrdn.c
dlls/wldap32/modrdn.c
+5
-8
No files found.
dlls/wldap32/modrdn.c
View file @
c8148d67
...
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
*/
ULONG
CDECL
ldap_modrdnA
(
LDAP
*
ld
,
char
*
dn
,
char
*
newdn
)
{
ULONG
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ULONG
ret
=
~
0u
;
WCHAR
*
dnW
=
NULL
,
*
newdnW
=
NULL
;
TRACE
(
"(%p, %s, %s)
\n
"
,
ld
,
debugstr_a
(
dn
),
debugstr_a
(
newdn
)
);
...
...
@@ -65,7 +65,7 @@ ULONG CDECL ldap_modrdnW( LDAP *ld, WCHAR *dn, WCHAR *newdn )
*/
ULONG
CDECL
ldap_modrdn2A
(
LDAP
*
ld
,
char
*
dn
,
char
*
newdn
,
int
delete
)
{
ULONG
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ULONG
ret
=
~
0u
;
WCHAR
*
dnW
=
NULL
,
*
newdnW
=
NULL
;
TRACE
(
"(%p, %s, %p, 0x%02x)
\n
"
,
ld
,
debugstr_a
(
dn
),
newdn
,
delete
);
...
...
@@ -88,7 +88,7 @@ exit:
*/
ULONG
CDECL
ldap_modrdn2W
(
LDAP
*
ld
,
WCHAR
*
dn
,
WCHAR
*
newdn
,
int
delete
)
{
ULONG
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ULONG
ret
=
~
0u
;
char
*
dnU
=
NULL
,
*
newdnU
=
NULL
;
int
msg
;
...
...
@@ -96,15 +96,12 @@ ULONG CDECL ldap_modrdn2W( LDAP *ld, WCHAR *dn, WCHAR *newdn, int delete )
if
(
!
ld
||
!
newdn
)
return
~
0u
;
if
(
dn
&&
!
(
dnU
=
strWtoU
(
dn
)))
return
WLDAP32_LDAP_NO_MEMORY
;
if
(
dn
&&
!
(
dnU
=
strWtoU
(
dn
)))
return
~
0u
;
if
((
newdnU
=
strWtoU
(
newdn
)))
{
ret
=
ldap_rename
(
CTX
(
ld
),
dnU
,
newdnU
,
NULL
,
delete
,
NULL
,
NULL
,
&
msg
);
if
(
ret
==
WLDAP32_LDAP_SUCCESS
)
if
(
ldap_rename
(
CTX
(
ld
),
dnU
,
newdnU
,
NULL
,
delete
,
NULL
,
NULL
,
&
msg
)
==
LDAP_SUCCESS
)
ret
=
msg
;
else
ret
=
~
0u
;
free
(
newdnU
);
}
free
(
dnU
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment