Commit 34db2d39 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

hlink: Return S_FALSE in GetTargetFrameName when returning NULL.

parent 7b2bb14b
......@@ -437,7 +437,15 @@ static HRESULT WINAPI IHlink_fnGetTargetFrameName(IHlink* iface,
HlinkImpl *This = impl_from_IHlink(iface);
TRACE("(%p)->(%p)\n", This, ppwzTargetFrameName);
if(!This->TargetFrameName) {
*ppwzTargetFrameName = NULL;
return S_FALSE;
}
*ppwzTargetFrameName = hlink_co_strdupW( This->TargetFrameName );
if(!*ppwzTargetFrameName)
return E_OUTOFMEMORY;
return S_OK;
}
......
......@@ -745,7 +745,6 @@ static HRESULT WINAPI HlinkFrame_Navigate(IHlinkFrame *iface, DWORD grfHLNF, LPB
DWORD site_data = 0xdeadbeef;
hres = IHlink_GetTargetFrameName(pihlNavigate, &frame_name);
todo_wine
ok(hres == S_FALSE, "GetTargetFrameName failed: %08x\n", hres);
ok(frame_name == NULL, "frame_name = %p\n", frame_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment