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/WaitHandle.Windows.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/Threading/WaitHandle.Windows.cs4
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;
}
}