mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
correct bug in write operations
svn path=/trunk/; revision=1436
This commit is contained in:
parent
565277e563
commit
e53fb528db
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: rw.c,v 1.8 2000/09/12 10:12:13 jean Exp $
|
||||
/* $Id: rw.c,v 1.9 2000/11/23 15:53:37 jean Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -220,7 +220,7 @@ NTSTATUS FsdWriteFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
|
|||
FileOffset < WriteOffset / DeviceExt->BytesPerCluster;
|
||||
FileOffset++)
|
||||
{
|
||||
CurrentCluster = GetNextCluster(DeviceExt,CurrentCluster);
|
||||
CurrentCluster = GetNextWriteCluster(DeviceExt,CurrentCluster);
|
||||
}
|
||||
}
|
||||
CHECKPOINT;
|
||||
|
@ -266,7 +266,7 @@ NTSTATUS FsdWriteFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
|
|||
else
|
||||
{
|
||||
VFATWriteCluster(DeviceExt,Temp,CurrentCluster);
|
||||
CurrentCluster = GetNextCluster(DeviceExt, CurrentCluster);
|
||||
CurrentCluster = GetNextWriteCluster(DeviceExt, CurrentCluster);
|
||||
}
|
||||
Length2 -= TempLength;
|
||||
Buffer = Buffer + TempLength;
|
||||
|
@ -294,7 +294,7 @@ NTSTATUS FsdWriteFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
|
|||
else
|
||||
{
|
||||
VFATWriteCluster(DeviceExt,Buffer,CurrentCluster);
|
||||
CurrentCluster = GetNextCluster(DeviceExt, CurrentCluster);
|
||||
CurrentCluster = GetNextWriteCluster(DeviceExt, CurrentCluster);
|
||||
}
|
||||
Buffer = Buffer + DeviceExt->BytesPerCluster;
|
||||
Length2 -= DeviceExt->BytesPerCluster;
|
||||
|
|
Loading…
Reference in a new issue