Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.cs2
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;
}
}