From 930fcadba2221be8580da533974880ece335b59c Mon Sep 17 00:00:00 2001 From: Trivalik_cp <42497cfff885d3ca0e6fda54fb6262dd42101bd5sx56jUzf> Date: Thu, 29 May 2014 20:57:34 +0000 Subject: [PATCH] apply patch 16367 by VirusFree: this is a fixed patch for the fatstream --- .../Cosmos.System/Filesystem/FAT/FatStream.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source2/Kernel/System/Cosmos.System/Filesystem/FAT/FatStream.cs b/source2/Kernel/System/Cosmos.System/Filesystem/FAT/FatStream.cs index d1234f7d7..20b8d08cd 100644 --- a/source2/Kernel/System/Cosmos.System/Filesystem/FAT/FatStream.cs +++ b/source2/Kernel/System/Cosmos.System/Filesystem/FAT/FatStream.cs @@ -57,8 +57,11 @@ namespace Cosmos.System.Filesystem.FAT { } } - public override int Read(byte[] aBuffer, Int64 aOffset, Int64 aCount) - { + public override int Read(byte[] aBuffer, int aOffset, int aCount) { + return Read(aBuffer , (Int64)aOffset , (Int64)aCount); + } + + public int Read(byte[] aBuffer, Int64 aOffset, Int64 aCount) { if (aCount < 0) { throw new ArgumentOutOfRangeException("aCount"); } @@ -119,7 +122,11 @@ namespace Cosmos.System.Filesystem.FAT { throw new NotImplementedException(); } - public override void Write(byte[] buffer, int offset, int count) { + public override void Write(byte[] aBuffer, int aOffset, int aCount) { + Write(aBuffer , (long)aOffset , (long)aCount); + } + + public void Write(byte[] buffer, long offset, long count) { throw new NotImplementedException(); } }