ole32: Fix error handling in GetTimeOfLastChange() for item moniker (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2015-03-20 09:41:34 +03:00 committed by Alexandre Julliard
parent 7aa2e9a9d0
commit f294ea8333
1 changed files with 6 additions and 0 deletions

View File

@ -601,8 +601,14 @@ static HRESULT WINAPI ItemMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
/* IMoniker::GetTimeOfLastChange on the pmkToLeft parameter. */
res=CreateGenericComposite(pmkToLeft,iface,&compositeMk);
if (FAILED(res))
return res;
res=IBindCtx_GetRunningObjectTable(pbc,&rot);
if (FAILED(res)) {
IMoniker_Release(compositeMk);
return res;
}
if (IRunningObjectTable_GetTimeOfLastChange(rot,compositeMk,pItemTime)!=S_OK)