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:
parent
e6513521ff
commit
3370d24917
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue