[FASTFAT]

MagicValue--;
ThanksTo(James, Amine);
/* EOF */

svn path=/trunk/; revision=50167
This commit is contained in:
Pierre Schweitzer 2010-12-27 18:11:35 +00:00
parent f59d1d7987
commit 18204992ea
3 changed files with 4 additions and 3 deletions

View file

@ -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)
{

View file

@ -2,6 +2,7 @@
#include <bugcodes.h>
#include <ntdddisk.h>
#include <debug.h>
#include <dos.h>
#define USE_ROS_CC_AND_FS

View file

@ -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);