diff options
Diffstat (limited to 'src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs')
-rw-r--r-- | src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs b/src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs index 70678b9ef..6a1887b3f 100644 --- a/src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs +++ b/src/System.Private.Interop/src/System/Runtime/InteropServices/WindowsRuntime/CustomPropertyImpl.cs @@ -133,7 +133,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime ); // We need to make sure it has the same HR that we were returning in desktop - InteropExtensions.SetExceptionErrorCode(ex, __HResults.COR_E_METHODACCESS); + ex.HResult = __HResults.COR_E_METHODACCESS; throw ex; } } |