ole32: Fix error handling in GetTimeOfLastChange() for item moniker (PVS-Studio).
This commit is contained in:
parent
7aa2e9a9d0
commit
f294ea8333
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue