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:
parent
b7496ebacc
commit
13e0671959
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue