Fixed a bug, when there is a write operation to the root directory, vfat crashs.

svn path=/trunk/; revision=2293
This commit is contained in:
Hartmut Birr 2001-10-11 15:39:51 +00:00
parent ef4b8d4947
commit 061fadc77a

View file

@ -1,5 +1,5 @@
/* $Id: rw.c,v 1.32 2001/10/10 22:19:51 hbirr Exp $ /* $Id: rw.c,v 1.33 2001/10/11 15:39:51 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -596,10 +596,10 @@ VfatWriteFile (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
&Fcb->entry.UpdateDate, &Fcb->entry.UpdateDate,
&Fcb->entry.UpdateTime); &Fcb->entry.UpdateTime);
Fcb->entry.AccessDate = Fcb->entry.UpdateDate; Fcb->entry.AccessDate = Fcb->entry.UpdateDate;
}
// update dates/times and length // update dates/times and length
updEntry (DeviceExt, FileObject); updEntry (DeviceExt, FileObject);
} }
}
return Status; return Status;
} }