hlink: Directly check for S_OK from IHlinkBrowseContext_GetObject().

Fixes a regression introduced by 00aca1476e

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-01-27 15:30:32 -06:00 committed by Alexandre Julliard
parent b7496ebacc
commit 13e0671959
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ static HRESULT WINAPI IHlink_fnNavigate(IHlink* iface, DWORD grfHLNF, LPBC pbc,
if (phbc)
{
r = IHlinkBrowseContext_GetObject(phbc, mon, TRUE, &unk);
if (r == S_FALSE)
if (r != S_OK)
{
CreateBindCtx(0, &bcxt);
RegisterBindStatusCallback(bcxt, pbsc, NULL, 0);

View File

@ -891,7 +891,7 @@ static HRESULT WINAPI HlinkBrowseContext_GetObject(IHlinkBrowseContext *iface,
ok(fBindIfRootRegistered == 1, "fBindIfRootRegistered = %x\n", fBindIfRootRegistered);
*ppiunk = HBC_object;
return HBC_object ? S_OK : S_FALSE;
return HBC_object ? S_OK : 0xdeadbeef;
}
static HRESULT WINAPI HlinkBrowseContext_Revoke(IHlinkBrowseContext *iface, DWORD dwRegister)