Nikolay Sivov : ole32: Check ComposeWith() return value too (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 13 08:44:26 CDT 2015
Module: wine
Branch: master
Commit: 46914d8794ec98b8d96d46f6713a6a6221dfb39f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=46914d8794ec98b8d96d46f6713a6a6221dfb39f
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Mar 13 11:32:47 2015 +0300
ole32: Check ComposeWith() return value too (PVS-Studio).
---
dlls/ole32/compositemoniker.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c
index 3e6788e..40d3568 100644
--- a/dlls/ole32/compositemoniker.c
+++ b/dlls/ole32/compositemoniker.c
@@ -722,6 +722,8 @@ CompositeMonikerImpl_GetTimeOfLastChange(IMoniker* iface, IBindCtx* pbc,
IRunningObjectTable* rot;
res = IMoniker_ComposeWith(pmkToLeft, iface, FALSE, &leftMk);
+ if (FAILED(res))
+ return res;
res = IBindCtx_GetRunningObjectTable(pbc,&rot);
if (FAILED(res))
More information about the wine-cvs
mailing list