oleaut32: Improve error handling in GetRecordInfoFromTypeInfo() (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-03 16:04:16 +03:00 committed by Alexandre Julliard
parent a260d3efc6
commit 8d4f568107
1 changed files with 6 additions and 1 deletions

View File

@ -650,7 +650,12 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo
WARN("GetRefTypeInfo failed: %08x\n", hres);
return hres;
}
ITypeInfo_GetTypeAttr(pTypeInfo, &typeattr);
hres = ITypeInfo_GetTypeAttr(pTypeInfo, &typeattr);
if(FAILED(hres)) {
ITypeInfo_Release(pTypeInfo);
WARN("GetTypeAttr failed for referenced type: %08x\n", hres);
return hres;
}
}else {
pTypeInfo = pTI;
ITypeInfo_AddRef(pTypeInfo);