Skip to content

Commit

Permalink
RandomAccess.Write throws System.IO.IOException Fix (#108380)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAvanzDev authored Oct 2, 2024
1 parent 3ca4ec8 commit 50e8435
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,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 50e8435

Please sign in to comment.