Commit 2bde3e20 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

hlink/tests: Check return value (Coverity).

parent c0d8de63
......@@ -877,11 +877,13 @@ static HRESULT WINAPI HlinkBrowseContext_GetObject(IHlinkBrowseContext *iface,
{
IBindCtx *bctx;
WCHAR *name;
HRESULT hr;
CHECK_EXPECT(HBC_GetObject);
CreateBindCtx(0, &bctx);
IMoniker_GetDisplayName(pimk, bctx, NULL, &name);
hr = IMoniker_GetDisplayName(pimk, bctx, NULL, &name);
ok(hr == S_OK, "Failed to get display name, hr %#x.\n", hr);
ok(!lstrcmpW(winehq_urlW, name) || !lstrcmpW(winehq_404W, name), "got unexpected url\n");
CoTaskMemFree(name);
IBindCtx_Release(bctx);
......
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