mirror of
https://github.com/reactos/reactos.git
synced 2025-04-09 23:37:40 +00:00
- Fixed the intialization of the returned fcb if the directory is the root (FindFile).
svn path=/trunk/; revision=4408
This commit is contained in:
parent
4687fe39e4
commit
1032130eaf
1 changed files with 6 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: create.c,v 1.54 2003/02/13 22:24:16 hbirr Exp $
|
||||
/* $Id: create.c,v 1.55 2003/03/23 10:45:56 hbirr Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: services/fs/vfat/create.c
|
||||
|
@ -238,12 +238,14 @@ FindFile (PDEVICE_EXTENSION DeviceExt,
|
|||
CHECKPOINT;
|
||||
Fcb->PathName[0]='\\';
|
||||
Fcb->ObjectName = &Fcb->PathName[1];
|
||||
Fcb->entry.FileSize = DeviceExt->FatInfo.rootDirectorySectors * DeviceExt->FatInfo.BytesPerSector;
|
||||
Fcb->entry.Attrib = FILE_ATTRIBUTE_DIRECTORY;
|
||||
Fcb->entry.CreationDate = 0x0021; /* 1.1.1980 */
|
||||
Fcb->entry.AccessDate = 0x0021;
|
||||
Fcb->entry.UpdateDate = 0x0021;
|
||||
if (DeviceExt->FatInfo.FatType == FAT32)
|
||||
{
|
||||
Fcb->entry.FirstCluster = ((PUSHORT)FirstCluster)[0];
|
||||
Fcb->entry.FirstClusterHigh = ((PUSHORT)FirstCluster)[1];
|
||||
Fcb->entry.FirstCluster = ((PUSHORT)&FirstCluster)[0];
|
||||
Fcb->entry.FirstClusterHigh = ((PUSHORT)&FirstCluster)[1];
|
||||
}
|
||||
else
|
||||
Fcb->entry.FirstCluster = 1;
|
||||
|
|
Loading…
Reference in a new issue