Commit 8d4f5681 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent a260d3ef
...@@ -650,7 +650,12 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo ...@@ -650,7 +650,12 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo
WARN("GetRefTypeInfo failed: %08x\n", hres); WARN("GetRefTypeInfo failed: %08x\n", hres);
return 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 { }else {
pTypeInfo = pTI; pTypeInfo = pTI;
ITypeInfo_AddRef(pTypeInfo); ITypeInfo_AddRef(pTypeInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment