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
1bf5e2da
Commit
1bf5e2da
authored
Apr 08, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Fix broken parameter handling.
parent
2d6d4e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
control.c
dlls/wldap32/control.c
+18
-10
No files found.
dlls/wldap32/control.c
View file @
1bf5e2da
...
...
@@ -214,16 +214,20 @@ INT ldap_create_vlv_controlA( WLDAP32_LDAP *ld, WLDAP32_LDAPVLVInfo *info,
{
INT
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPControlW
*
*
controlW
=
NULL
;
LDAPControlW
*
controlW
=
NULL
;
TRACE
(
"(%p, %p, 0x%02x, %p)
\n
"
,
ld
,
info
,
critical
,
control
);
if
(
!
ld
)
return
~
0UL
;
if
(
!
ld
||
!
control
)
return
~
0UL
;
ret
=
ldap_create_vlv_controlW
(
ld
,
info
,
critical
,
controlW
);
ret
=
ldap_create_vlv_controlW
(
ld
,
info
,
critical
,
&
controlW
);
*
control
=
controlWtoA
(
*
controlW
);
ldap_control_freeW
(
*
controlW
);
if
(
ret
==
LDAP_SUCCESS
)
{
*
control
=
controlWtoA
(
controlW
);
if
(
!*
control
)
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ldap_control_freeW
(
controlW
);
}
#endif
return
ret
;
...
...
@@ -256,16 +260,20 @@ INT ldap_create_vlv_controlW( WLDAP32_LDAP *ld, WLDAP32_LDAPVLVInfo *info,
{
INT
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPControl
*
*
controlU
=
NULL
;
LDAPControl
*
controlU
=
NULL
;
TRACE
(
"(%p, %p, 0x%02x, %p)
\n
"
,
ld
,
info
,
critical
,
control
);
if
(
!
ld
)
return
~
0UL
;
if
(
!
ld
||
!
control
)
return
~
0UL
;
ret
=
ldap_create_vlv_control
(
ld
,
(
LDAPVLVInfo
*
)
info
,
controlU
);
ret
=
ldap_create_vlv_control
(
ld
,
(
LDAPVLVInfo
*
)
info
,
&
controlU
);
*
control
=
controlUtoW
(
*
controlU
);
ldap_control_free
(
*
controlU
);
if
(
ret
==
LDAP_SUCCESS
)
{
*
control
=
controlUtoW
(
controlU
);
if
(
!*
control
)
ret
=
WLDAP32_LDAP_NO_MEMORY
;
ldap_control_free
(
controlU
);
}
#endif
return
ret
;
...
...
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