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/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs')
-rw-r--r--src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs b/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
index b284c116b..52973f2ab 100644
--- a/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
+++ b/src/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
@@ -11,9 +11,6 @@ namespace Microsoft.Win32.SafeHandles
{
public sealed class SafeFileHandle : SafeHandleZeroOrMinusOneIsInvalid
{
- /// <summary>A handle value of -1.</summary>
- private static readonly IntPtr s_invalidHandle = new IntPtr(-1);
-
private SafeFileHandle() : this(ownsHandle: true)
{
}
@@ -21,7 +18,7 @@ namespace Microsoft.Win32.SafeHandles
private SafeFileHandle(bool ownsHandle)
: base(ownsHandle)
{
- SetHandle(s_invalidHandle);
+ SetHandle(new IntPtr(-1));
}
public SafeFileHandle(IntPtr preexistingHandle, bool ownsHandle) : this(ownsHandle)