From 18204992eae775c0be1b7908806875d4287274ae Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 27 Dec 2010 18:11:35 +0000 Subject: [PATCH] [FASTFAT] MagicValue--; ThanksTo(James, Amine); /* EOF */ svn path=/trunk/; revision=50167 --- reactos/drivers/filesystems/fastfat/finfo.c | 2 +- reactos/drivers/filesystems/fastfat/vfat.h | 1 + reactos/drivers/filesystems/fastfat/volume.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/filesystems/fastfat/finfo.c b/reactos/drivers/filesystems/fastfat/finfo.c index 11618a5d8f6..5b18261d6d9 100644 --- a/reactos/drivers/filesystems/fastfat/finfo.c +++ b/reactos/drivers/filesystems/fastfat/finfo.c @@ -152,7 +152,7 @@ VfatSetBasicInformation(PFILE_OBJECT FileObject, ASSERT(NULL != DeviceExt); ASSERT(NULL != BasicInfo); /* Check volume label bit */ - ASSERT(0 == (*FCB->Attributes & 0x08)); + ASSERT(0 == (*FCB->Attributes & _A_VOLID)); if (FCB->Flags & FCB_IS_FATX_ENTRY) { diff --git a/reactos/drivers/filesystems/fastfat/vfat.h b/reactos/drivers/filesystems/fastfat/vfat.h index 3521d31a36d..a2a9983260d 100644 --- a/reactos/drivers/filesystems/fastfat/vfat.h +++ b/reactos/drivers/filesystems/fastfat/vfat.h @@ -2,6 +2,7 @@ #include #include #include +#include #define USE_ROS_CC_AND_FS diff --git a/reactos/drivers/filesystems/fastfat/volume.c b/reactos/drivers/filesystems/fastfat/volume.c index 6fd04800e5f..3231fbc3cf2 100644 --- a/reactos/drivers/filesystems/fastfat/volume.c +++ b/reactos/drivers/filesystems/fastfat/volume.c @@ -216,7 +216,7 @@ FsdSetFsLabelInformation(PDEVICE_OBJECT DeviceObject, { RtlCopyMemory(VolumeLabelDirEntry.FatX.Filename, cString, LabelLen); memset(&VolumeLabelDirEntry.FatX.Filename[LabelLen], ' ', 42 - LabelLen); - VolumeLabelDirEntry.FatX.Attrib = 0x08; + VolumeLabelDirEntry.FatX.Attrib = _A_VOLID; } else { @@ -230,7 +230,7 @@ FsdSetFsLabelInformation(PDEVICE_OBJECT DeviceObject, { memset(&VolumeLabelDirEntry.Fat.Filename[LabelLen], ' ', sizeof(VolumeLabelDirEntry.Fat.Filename) - LabelLen); } - VolumeLabelDirEntry.Fat.Attrib = 0x08; + VolumeLabelDirEntry.Fat.Attrib = _A_VOLID; } pRootFcb = vfatOpenRootFCB(DeviceExt);