From 2da14243ee362ef2821890d66136899ddabc4e1d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 25 Jul 2001 17:39:34 +0000 Subject: [PATCH] Fixed bug in vfatMakeRootFCB(). svn path=/trunk/; revision=2102 --- reactos/drivers/fs/vfat/fcb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/fs/vfat/fcb.c b/reactos/drivers/fs/vfat/fcb.c index d5b218d2fe5..ae9d041f72b 100644 --- a/reactos/drivers/fs/vfat/fcb.c +++ b/reactos/drivers/fs/vfat/fcb.c @@ -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 @@ -291,7 +291,8 @@ vfatMakeRootFCB(PDEVICE_EXTENSION pVCB) FCB->entry.Attrib = FILE_ATTRIBUTE_DIRECTORY; 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 {