[PATCH] adsldp: Fix error returned from openobj_OpenDSObject().
Hans Leidekker
hans at codeweavers.com
Fri Sep 17 06:09:14 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
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;
}
--
2.30.2
More information about the wine-devel
mailing list