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
810a5b0f
Commit
810a5b0f
authored
Aug 02, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use WLDAP32_LDAP_NO_MEMORY instead of LDAP_NO_MEMORY.
parent
60f2d44e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
24 deletions
+53
-24
bind.c
dlls/wldap32/bind.c
+24
-12
compare.c
dlls/wldap32/compare.c
+6
-0
init.c
dlls/wldap32/init.c
+4
-2
search.c
dlls/wldap32/search.c
+19
-10
No files found.
dlls/wldap32/bind.c
View file @
810a5b0f
...
...
@@ -46,7 +46,8 @@ ULONG ldap_bindA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR cred, ULONG method )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
credW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_a
(
dn
),
cred
,
method
);
...
...
@@ -76,7 +77,8 @@ ULONG ldap_bindW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR cred, ULONG method )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
dnU
=
NULL
,
*
credU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_w
(
dn
),
cred
,
method
);
...
...
@@ -106,7 +108,8 @@ ULONG ldap_bind_sA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR cred, ULONG method )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
credW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_a
(
dn
),
cred
,
method
);
...
...
@@ -136,7 +139,8 @@ ULONG ldap_bind_sW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR cred, ULONG method )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
dnU
=
NULL
,
*
credU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_w
(
dn
),
cred
,
method
);
...
...
@@ -169,7 +173,8 @@ ULONG ldap_sasl_bindA( WLDAP32_LDAP *ld, const PCHAR dn,
#ifdef HAVE_LDAP
WCHAR
*
dnW
,
*
mechanismW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %p, %p, %p, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
debugstr_a
(
mechanism
),
cred
,
serverctrls
,
clientctrls
,
message
);
...
...
@@ -212,7 +217,8 @@ ULONG ldap_sasl_bindW( WLDAP32_LDAP *ld, const PWCHAR dn,
#ifdef HAVE_LDAP
char
*
dnU
,
*
mechanismU
=
NULL
;
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %p, %p, %p, %p)
\n
"
,
ld
,
debugstr_w
(
dn
),
debugstr_w
(
mechanism
),
cred
,
serverctrls
,
clientctrls
,
message
);
...
...
@@ -256,7 +262,8 @@ ULONG ldap_sasl_bind_sA( WLDAP32_LDAP *ld, const PCHAR dn,
#ifdef HAVE_LDAP
WCHAR
*
dnW
,
*
mechanismW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %p, %p, %p, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
debugstr_a
(
mechanism
),
cred
,
serverctrls
,
clientctrls
,
serverdata
);
...
...
@@ -299,7 +306,8 @@ ULONG ldap_sasl_bind_sW( WLDAP32_LDAP *ld, const PWCHAR dn,
#ifdef HAVE_LDAP
char
*
dnU
,
*
mechanismU
=
NULL
;
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %p, %p, %p, %p)
\n
"
,
ld
,
debugstr_w
(
dn
),
debugstr_w
(
mechanism
),
cred
,
serverctrls
,
clientctrls
,
serverdata
);
...
...
@@ -340,7 +348,8 @@ ULONG ldap_simple_bindA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR passwd )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
passwdW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
passwd
);
...
...
@@ -370,7 +379,8 @@ ULONG ldap_simple_bindW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR passwd )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
dnU
=
NULL
,
*
passwdU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p)
\n
"
,
ld
,
debugstr_w
(
dn
),
passwd
);
...
...
@@ -400,7 +410,8 @@ ULONG ldap_simple_bind_sA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR passwd )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
passwdW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
passwd
);
...
...
@@ -430,7 +441,8 @@ ULONG ldap_simple_bind_sW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR passwd )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
dnU
=
NULL
,
*
passwdU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %p)
\n
"
,
ld
,
debugstr_w
(
dn
),
passwd
);
...
...
dlls/wldap32/compare.c
View file @
810a5b0f
...
...
@@ -45,6 +45,7 @@ ULONG ldap_compareA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
attrW
=
NULL
,
*
valueW
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s)
\n
"
,
ld
,
debugstr_a
(
dn
),
debugstr_a
(
attr
),
...
...
@@ -122,6 +123,7 @@ ULONG ldap_compare_extA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value,
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
attrW
=
NULL
,
*
valueW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s, %p, %p, %p, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
...
...
@@ -230,6 +232,7 @@ ULONG ldap_compare_ext_sA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value,
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
attrW
=
NULL
,
*
valueW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s, %p, %p, %p)
\n
"
,
ld
,
debugstr_a
(
dn
),
...
...
@@ -281,6 +284,7 @@ ULONG ldap_compare_ext_sW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR valu
struct
berval
berval
;
char
*
dnU
=
NULL
,
*
attrU
=
NULL
,
*
valueU
=
NULL
;
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s, %p, %p, %p)
\n
"
,
ld
,
debugstr_w
(
dn
),
...
...
@@ -333,6 +337,7 @@ ULONG ldap_compare_sA( WLDAP32_LDAP *ld, PCHAR dn, PCHAR attr, PCHAR value )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
dnW
=
NULL
,
*
attrW
=
NULL
,
*
valueW
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s)
\n
"
,
ld
,
debugstr_a
(
dn
),
debugstr_a
(
attr
),
...
...
@@ -369,6 +374,7 @@ ULONG ldap_compare_sW( WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value )
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
dnU
=
NULL
,
*
attrU
=
NULL
,
*
valueU
=
NULL
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, %s, %s)
\n
"
,
ld
,
debugstr_w
(
dn
),
debugstr_w
(
attr
),
...
...
dlls/wldap32/init.c
View file @
810a5b0f
...
...
@@ -150,7 +150,8 @@ ULONG ldap_start_tls_sA( WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %p, %p, %p, %p)
\n
"
,
ld
,
retval
,
result
,
serverctrls
,
clientctrls
);
...
...
@@ -181,7 +182,8 @@ ULONG ldap_start_tls_sW( WLDAP32_LDAP *ld, PULONG retval, WLDAP32_LDAPMessage **
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %p, %p, %p, %p)
\n
"
,
ld
,
retval
,
result
,
serverctrls
,
clientctrls
);
...
...
dlls/wldap32/search.c
View file @
810a5b0f
...
...
@@ -47,7 +47,8 @@ ULONG ldap_searchA( WLDAP32_LDAP *ld, PCHAR base, ULONG scope, PCHAR filter,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
baseW
=
NULL
,
*
filterW
=
NULL
,
**
attrsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_a
(
base
),
scope
,
debugstr_a
(
filter
),
attrs
,
attrsonly
);
...
...
@@ -84,7 +85,8 @@ ULONG ldap_searchW( WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
baseU
=
NULL
,
*
filterU
=
NULL
,
**
attrsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx)
\n
"
,
ld
,
debugstr_w
(
base
),
scope
,
debugstr_w
(
filter
),
attrs
,
attrsonly
);
...
...
@@ -123,7 +125,8 @@ ULONG ldap_search_extA( WLDAP32_LDAP *ld, PCHAR base, ULONG scope,
#ifdef HAVE_LDAP
WCHAR
*
baseW
=
NULL
,
*
filterW
=
NULL
,
**
attrsW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p, 0x%08lx, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_a
(
base
),
scope
,
debugstr_a
(
filter
),
attrs
,
attrsonly
,
...
...
@@ -177,7 +180,7 @@ ULONG ldap_search_extW( WLDAP32_LDAP *ld, PWCHAR base, ULONG scope,
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
struct
timeval
tv
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_
LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p, 0x%08lx, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_w
(
base
),
scope
,
debugstr_w
(
filter
),
attrs
,
attrsonly
,
...
...
@@ -231,7 +234,8 @@ ULONG ldap_search_ext_sA( WLDAP32_LDAP *ld, PCHAR base, ULONG scope,
#ifdef HAVE_LDAP
WCHAR
*
baseW
=
NULL
,
*
filterW
=
NULL
,
**
attrsW
=
NULL
;
LDAPControlW
**
serverctrlsW
=
NULL
,
**
clientctrlsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p, %p, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_a
(
base
),
scope
,
debugstr_a
(
filter
),
attrs
,
attrsonly
,
...
...
@@ -282,7 +286,8 @@ ULONG ldap_search_ext_sW( WLDAP32_LDAP *ld, PWCHAR base, ULONG scope,
#ifdef HAVE_LDAP
char
*
baseU
=
NULL
,
*
filterU
=
NULL
,
**
attrsU
=
NULL
;
LDAPControl
**
serverctrlsU
=
NULL
,
**
clientctrlsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p, %p, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_w
(
base
),
scope
,
debugstr_w
(
filter
),
attrs
,
attrsonly
,
...
...
@@ -331,7 +336,8 @@ ULONG ldap_search_sA( WLDAP32_LDAP *ld, PCHAR base, ULONG scope, PCHAR filter,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
baseW
=
NULL
,
*
filterW
=
NULL
,
**
attrsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_a
(
base
),
scope
,
debugstr_a
(
filter
),
attrs
,
attrsonly
,
res
);
...
...
@@ -368,7 +374,8 @@ ULONG ldap_search_sW( WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
baseU
=
NULL
,
*
filterU
=
NULL
,
**
attrsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p)
\n
"
,
ld
,
debugstr_w
(
base
),
scope
,
debugstr_w
(
filter
),
attrs
,
attrsonly
,
res
);
...
...
@@ -406,7 +413,8 @@ ULONG ldap_search_stA( WLDAP32_LDAP *ld, const PCHAR base, ULONG scope,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
WCHAR
*
baseW
=
NULL
,
*
filterW
=
NULL
,
**
attrsW
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p)
\n
"
,
ld
,
debugstr_a
(
base
),
scope
,
debugstr_a
(
filter
),
attrs
,
...
...
@@ -446,7 +454,8 @@ ULONG ldap_search_stW( WLDAP32_LDAP *ld, const PWCHAR base, ULONG scope,
ULONG
ret
=
LDAP_NOT_SUPPORTED
;
#ifdef HAVE_LDAP
char
*
baseU
=
NULL
,
*
filterU
=
NULL
,
**
attrsU
=
NULL
;
ret
=
LDAP_NO_MEMORY
;
ret
=
WLDAP32_LDAP_NO_MEMORY
;
TRACE
(
"(%p, %s, 0x%08lx, %s, %p, 0x%08lx, %p, %p)
\n
"
,
ld
,
debugstr_w
(
base
),
scope
,
debugstr_w
(
filter
),
attrs
,
...
...
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