diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs b/src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs index bda696cca..976836387 100644 --- a/src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs +++ b/src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs @@ -260,7 +260,7 @@ namespace System.Threading default: var ex = new Exception(); - ex.SetErrorCode(errorCode); + ex.HResult = errorCode; throw ex; } } @@ -300,7 +300,7 @@ namespace System.Threading default: Exception ex = new Exception(); - ex.SetErrorCode(errorCode); + ex.HResult = errorCode; throw ex; } } |