oleview: Don't crash if the parent type couldn't be retrieved.
This commit is contained in:
parent
56eb6f6730
commit
3982f12404
|
@ -895,14 +895,18 @@ static void CreateInterfaceInfo(ITypeInfo *pTypeInfo, int cImplTypes, WCHAR *wsz
|
||||||
AddToTLDataStrW(pTLData, wszSpace);
|
AddToTLDataStrW(pTLData, wszSpace);
|
||||||
|
|
||||||
ITypeInfo_GetRefTypeOfImplType(pTypeInfo, 0, &hRefType);
|
ITypeInfo_GetRefTypeOfImplType(pTypeInfo, 0, &hRefType);
|
||||||
ITypeInfo_GetRefTypeInfo(pTypeInfo, hRefType, &pRefTypeInfo);
|
if (SUCCEEDED(ITypeInfo_GetRefTypeInfo(pTypeInfo, hRefType, &pRefTypeInfo)))
|
||||||
ITypeInfo_GetDocumentation(pRefTypeInfo, MEMBERID_NIL, &bstrName,
|
{
|
||||||
|
ITypeInfo_GetDocumentation(pRefTypeInfo, MEMBERID_NIL, &bstrName,
|
||||||
NULL, NULL, NULL);
|
NULL, NULL, NULL);
|
||||||
AddToTLDataStrW(pTLData, bstrName);
|
AddToTLDataStrW(pTLData, bstrName);
|
||||||
AddToTLDataStrW(pTLData, wszSpace);
|
AddToTLDataStrW(pTLData, wszSpace);
|
||||||
|
|
||||||
SysFreeString(bstrName);
|
SysFreeString(bstrName);
|
||||||
ITypeInfo_Release(pRefTypeInfo);
|
ITypeInfo_Release(pRefTypeInfo);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
AddToTLDataStrW(pTLData, wszFailed);
|
||||||
}
|
}
|
||||||
AddToTLDataStrW(pTLData, wszOpenBrackets3);
|
AddToTLDataStrW(pTLData, wszOpenBrackets3);
|
||||||
AddToTLDataStrW(pTLData, wszNewLine);
|
AddToTLDataStrW(pTLData, wszNewLine);
|
||||||
|
|
Loading…
Reference in New Issue