mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
[FASTFAT]
MagicValue--; ThanksTo(James, Amine); /* EOF */ svn path=/trunk/; revision=50167
This commit is contained in:
parent
f59d1d7987
commit
18204992ea
3 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <bugcodes.h>
|
||||
#include <ntdddisk.h>
|
||||
#include <debug.h>
|
||||
#include <dos.h>
|
||||
|
||||
#define USE_ROS_CC_AND_FS
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue