Skip to content

Commit

Permalink
RandomAccess.Write throws System.IO.IOException Fix (dotnet#108380)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAvanzDev authored and adamsitnik committed Nov 8, 2024
1 parent c489a8c commit 9b83729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ internal static long ReadScatterAtOffset(SafeFileHandle handle, IReadOnlyList<Me
internal static void WriteGatherAtOffset(SafeFileHandle handle, IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset)
{
// WriteFileGather does not support sync handles, so we just call WriteFile in a loop
int bytesWritten = 0;
long bytesWritten = 0;
int buffersCount = buffers.Count;
for (int i = 0; i < buffersCount; i++)
{
Expand Down

0 comments on commit 9b83729

Please sign in to comment.