szFunctionName, _countof(szFunctionName), &nameLen,
nullptr, nullptr, nullptr, nullptr, nullptr);
+ if (FAILED(Status))
+ continue;
+
if ((g_operatorMethodNames.find(to_utf8(szFunctionName)) != g_operatorMethodNames.end())
|| HasAttribute(pMD, methodDef, g_nonUserCode)
|| HasAttribute(pMD, methodDef, g_stepThrough)
ToRelease<IMetaDataImport2> pMD2;
IfFailRet(pMDUnknown->QueryInterface(IID_IMetaDataImport2, (LPVOID*) &pMD2));
- hr = pMD->GetMethodProps(methodDef, &memTypeDef,
- szFunctionName, _countof(szFunctionName), &nameLen,
- &flags, &pbSigBlob, &ulSigBlob, &ulCodeRVA, &ulImplFlags);
+ IfFailRet(pMD->GetMethodProps(methodDef, &memTypeDef,
+ szFunctionName, _countof(szFunctionName), &nameLen,
+ &flags, &pbSigBlob, &ulSigBlob, &ulCodeRVA, &ulImplFlags));
std::string funcName = to_utf8(szFunctionName/*, nameLen*/);