diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs b/src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs index 602908d6d..a492e3acb 100644 --- a/src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs +++ b/src/System.Private.CoreLib/src/System/Threading/LowLevelMonitor.Windows.cs @@ -51,7 +51,7 @@ namespace System.Threading if (lastError != Interop.Errors.ERROR_TIMEOUT) { var exception = new OutOfMemoryException(); - exception.SetErrorCode(lastError); + exception.HResult = lastError; throw exception; } } |