Nikolay Sivov : hlink/tests: Check return value (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Dec 26 15:01:53 CST 2017
Module: wine
Branch: master
Commit: 2bde3e203b8852ea4fccdd54ffd41fbb74c77970
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2bde3e203b8852ea4fccdd54ffd41fbb74c77970
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Dec 23 10:49:48 2017 +0300
hlink/tests: Check return value (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hlink/tests/hlink.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c
index 8350624..e40807c 100644
--- a/dlls/hlink/tests/hlink.c
+++ b/dlls/hlink/tests/hlink.c
@@ -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);
More information about the wine-cvs
mailing list