Hans Leidekker : adsldp: Fix error returned from openobj_OpenDSObject().

Alexandre Julliard julliard at winehq.org
Fri Sep 17 16:03:09 CDT 2021


Module: wine
Branch: master
Commit: 3370d24917b2545a8e580ebcb6da5e9a1fd5e83f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3370d24917b2545a8e580ebcb6da5e9a1fd5e83f

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Sep 17 13:09:14 2021 +0200

adsldp: Fix error returned from openobj_OpenDSObject().

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/adsldp/adsldp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/adsldp/adsldp.c b/dlls/adsldp/adsldp.c
index 701f27cd969..3d5ea29882c 100644
--- a/dlls/adsldp/adsldp.c
+++ b/dlls/adsldp/adsldp.c
@@ -990,7 +990,7 @@ static HRESULT WINAPI openobj_OpenDSObject(IADsOpenDSObject *iface, BSTR path, B
             err = DsGetDcNameW(NULL, NULL, NULL, NULL, DS_RETURN_DNS_NAME, &dcinfo);
             if (err != ERROR_SUCCESS)
             {
-                hr = HRESULT_FROM_WIN32(LdapGetLastError());
+                hr = HRESULT_FROM_WIN32(err);
                 goto fail;
             }
 




More information about the wine-cvs mailing list