diff options
Diffstat (limited to 'src/System.Private.Interop/src/Shared/StandardInterfaces.cs')
-rw-r--r-- | src/System.Private.Interop/src/Shared/StandardInterfaces.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Private.Interop/src/Shared/StandardInterfaces.cs b/src/System.Private.Interop/src/Shared/StandardInterfaces.cs index 24c04ecce..d21279cc6 100644 --- a/src/System.Private.Interop/src/Shared/StandardInterfaces.cs +++ b/src/System.Private.Interop/src/Shared/StandardInterfaces.cs @@ -742,7 +742,7 @@ namespace System.Runtime.InteropServices else *unsafe_stringRepresentation = McgMarshal.StringToHString(stringRepresentation); } - catch (Exception ex) + catch (Exception ex) when (McgMarshal.PropagateException(ex)) { return McgMarshal.GetHRForExceptionWinRT(ex); } @@ -1214,7 +1214,7 @@ namespace System.Runtime.InteropServices return hr; } - catch (Exception ex) + catch (Exception ex) when (McgMarshal.PropagateException(ex)) { return McgMarshal.GetHRForExceptionWinRT(ex); } @@ -1443,7 +1443,7 @@ namespace System.Runtime.InteropServices *pResult = (IntPtr)((IActivationFactoryInternal)target).ActivateInstance(); return Interop.COM.S_OK; } - catch (System.Exception hrExcep) + catch (System.Exception hrExcep) when (McgMarshal.PropagateException(hrExcep)) { *pResult = default(IntPtr); return McgMarshal.GetHRForExceptionWinRT(hrExcep); @@ -1513,7 +1513,7 @@ namespace System.Runtime.InteropServices ((IManagedActivationFactory)ComCallableObject.GetTarget(pComThis)).RunClassConstructor(); return Interop.COM.S_OK; } - catch (System.Exception hrExcep) + catch (System.Exception hrExcep) when (McgMarshal.PropagateException(hrExcep)) { return McgMarshal.GetHRForExceptionWinRT(hrExcep); } |