Skip to content

Commit

Permalink
Library - Read - Only copy the actual read data to the destination bu…
Browse files Browse the repository at this point in the history
…ffer

#352
  • Loading branch information
Liryna committed Mar 30, 2024
1 parent 21f2e5b commit 2f15c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DokanNet/DokanOperationProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public NtStatus ReadFileProxy(
try
{
result = operations.ReadFile(rawFileName, buffer, out rawReadLength, rawOffset, rawFileInfo);
Marshal.Copy(buffer, 0, rawBuffer, (int)rawBufferLength);
Marshal.Copy(buffer, 0, rawBuffer, rawReadLength);
}
finally
{
Expand Down

0 comments on commit 2f15c8a

Please sign in to comment.