[PATCH] wldap32: Properly initialize the context in ldap_sslinitW.

Hans Leidekker hans at codeweavers.com
Tue Jan 19 08:55:31 CST 2021


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/wldap32/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wldap32/init.c b/dlls/wldap32/init.c
index afaef3b52f2..0072ede6772 100644
--- a/dlls/wldap32/init.c
+++ b/dlls/wldap32/init.c
@@ -567,9 +567,9 @@ WLDAP32_LDAP * CDECL ldap_sslinitW( PWCHAR hostname, ULONG portnumber, int secur
         url = urlify_hostnames( "ldaps://", hostnameU, portnumber );
     else
         url = urlify_hostnames( "ldap://", hostnameU, portnumber );
-
     if (!url) goto exit;
-    ldap_initialize( &ld->ld, url );
+
+    ld = create_context( url );
 
 exit:
     strfreeU( hostnameU );
-- 
2.29.2




More information about the wine-devel mailing list