Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b5c6996

Browse files
shrahsafern
authored andcommitted
Port COMException fix from master (#15735)
1 parent 89e2af9 commit b5c6996

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/vm/clrex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ OBJECTREF EEException::CreateThrowable()
12241224
#endif
12251225
}
12261226

1227-
RuntimeExceptionKind EEException::GetKindFromHR(HRESULT hr, bool fIsWinRtMode)
1227+
RuntimeExceptionKind EEException::GetKindFromHR(HRESULT hr, bool fIsWinRtMode /*= false*/)
12281228
{
12291229
LIMITED_METHOD_CONTRACT;
12301230

src/vm/clrex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ inline EEMessageException::EEMessageException(HRESULT hr)
10961096
}
10971097

10981098
inline EEMessageException::EEMessageException(HRESULT hr, bool fUseCOMException)
1099-
: EEException(GetKindFromHR(hr, fUseCOMException)),
1099+
: EEException(GetKindFromHR(hr, !fUseCOMException)),
11001100
m_hr(hr),
11011101
m_resID(0)
11021102
{

src/vm/stubhelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ FCIMPL4(Object*, StubHelpers::GetCOMHRExceptionObject, HRESULT hr, MethodDesc *p
16911691
}
16921692
}
16931693

1694-
GetExceptionForHR(hr, pErrInfo, fForWinRT, &oThrowable, pResErrorInfo, bHasNonCLRLanguageErrorObject);
1694+
GetExceptionForHR(hr, pErrInfo, !fForWinRT, &oThrowable, pResErrorInfo, bHasNonCLRLanguageErrorObject);
16951695
}
16961696
HELPER_METHOD_FRAME_END();
16971697

0 commit comments

Comments
 (0)