From 18e6dd1179c390d1b39a3941e0a0cfc91a17b1b8 Mon Sep 17 00:00:00 2001 From: Jeremy Kuhne Date: Wed, 28 Jun 2017 11:43:54 -0700 Subject: [PATCH] Fix debug assert (dotnet/coreclr#12496) Commit migrated from https://github.com/dotnet/coreclr/commit/cad25d9ce6b6d3d9a1f539cf456c2edc8c2c34af --- src/coreclr/src/mscorlib/shared/System/IO/FileStream.Windows.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/mscorlib/shared/System/IO/FileStream.Windows.cs b/src/coreclr/src/mscorlib/shared/System/IO/FileStream.Windows.cs index ff62047..cdf1cb0 100644 --- a/src/coreclr/src/mscorlib/shared/System/IO/FileStream.Windows.cs +++ b/src/coreclr/src/mscorlib/shared/System/IO/FileStream.Windows.cs @@ -616,8 +616,8 @@ namespace System.IO // internal position private long SeekCore(SafeFileHandle fileHandle, long offset, SeekOrigin origin, bool closeInvalidHandle = false) { - Debug.Assert(!_fileHandle.IsClosed && _canSeek, "!_handle.IsClosed && _parent.CanSeek"); - Debug.Assert(origin >= SeekOrigin.Begin && origin <= SeekOrigin.End, "origin>=SeekOrigin.Begin && origin<=SeekOrigin.End"); + Debug.Assert(!fileHandle.IsClosed && _canSeek, "!fileHandle.IsClosed && _canSeek"); + Debug.Assert(origin >= SeekOrigin.Begin && origin <= SeekOrigin.End, "origin >= SeekOrigin.Begin && origin <= SeekOrigin.End"); long ret = 0; -- 2.7.4