mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Fixed bug in vfatMakeRootFCB().
svn path=/trunk/; revision=2102
This commit is contained in:
parent
6bad760721
commit
2da14243ee
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: fcb.c,v 1.6 2001/07/20 08:00:20 ekohl Exp $
|
/* $Id: fcb.c,v 1.7 2001/07/25 17:39:34 hbirr Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* FILE: fcb.c
|
* FILE: fcb.c
|
||||||
|
@ -291,7 +291,8 @@ vfatMakeRootFCB(PDEVICE_EXTENSION pVCB)
|
||||||
FCB->entry.Attrib = FILE_ATTRIBUTE_DIRECTORY;
|
FCB->entry.Attrib = FILE_ATTRIBUTE_DIRECTORY;
|
||||||
if (pVCB->FatType == FAT32)
|
if (pVCB->FatType == FAT32)
|
||||||
{
|
{
|
||||||
FCB->entry.FirstCluster = ((struct _BootSector32*)(pVCB->Boot))->RootCluster;
|
FCB->entry.FirstCluster = ((struct _BootSector32*)(pVCB->Boot))->RootCluster & 0xffff;
|
||||||
|
FCB->entry.FirstClusterHigh = ((struct _BootSector32*)(pVCB->Boot))->RootCluster >> 16;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue