Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public sealed override long Seek(long offset, SeekOrigin origin)
}
else
{
// keep throwing the same exception we did when seek was causing actual offset change
FileStreamHelpers.ThrowInvalidArgument(_fileHandle);
// keep throwing the same exception type we did when seek was causing actual offset change
throw new IOException(SR.IO_SeekBeforeBegin);
}

// Prevent users from overwriting data in a file that was opened in append mode.
Expand Down
Loading