提交 415bfdd3 编写于 作者: T Tijoy Tom 提交者: GitHub

Merge pull request dotnet/coreclr#13553 from tijoytom/master

Revert incorrect change from commit 16fc300

Commit migrated from https://github.com/dotnet/coreclr/commit/a3e884a062607ac296fc3943796627e2209a95ea
......@@ -1224,7 +1224,7 @@ OBJECTREF EEException::CreateThrowable()
#endif
}
RuntimeExceptionKind EEException::GetKindFromHR(HRESULT hr, bool fIsWinRtMode)
RuntimeExceptionKind EEException::GetKindFromHR(HRESULT hr, bool fIsWinRtMode /*= false*/)
{
LIMITED_METHOD_CONTRACT;
......
......@@ -1095,7 +1095,7 @@ inline EEMessageException::EEMessageException(HRESULT hr)
}
inline EEMessageException::EEMessageException(HRESULT hr, bool fUseCOMException)
: EEException(GetKindFromHR(hr, fUseCOMException)),
: EEException(GetKindFromHR(hr, !fUseCOMException)),
m_hr(hr),
m_resID(0)
{
......
......@@ -1690,7 +1690,7 @@ FCIMPL4(Object*, StubHelpers::GetCOMHRExceptionObject, HRESULT hr, MethodDesc *p
}
}
GetExceptionForHR(hr, pErrInfo, fForWinRT, &oThrowable, pResErrorInfo, bHasNonCLRLanguageErrorObject);
GetExceptionForHR(hr, pErrInfo, !fForWinRT, &oThrowable, pResErrorInfo, bHasNonCLRLanguageErrorObject);
}
HELPER_METHOD_FRAME_END();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册