adsldp: Fix error returned from openobj_OpenDSObject().

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-09-17 13:09:14 +02:00 committed by Alexandre Julliard
parent e6513521ff
commit 3370d24917
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}