From 3370d24917b2545a8e580ebcb6da5e9a1fd5e83f Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 17 Sep 2021 13:09:14 +0200 Subject: [PATCH] adsldp: Fix error returned from openobj_OpenDSObject(). Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- 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; }