[FASTFAT] When allocating a FCB, set its node type code.

We set the same value as MS FastFAT driver for consistency.
This commit is contained in:
Pierre Schweitzer 2018-04-27 18:56:31 +02:00
parent 579a784e04
commit 315f9a13d4
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 5 additions and 0 deletions

View file

@ -98,6 +98,9 @@ vfatInitFcb(
KeBugCheckEx(FAT_FILE_SYSTEM, (ULONG_PTR)Fcb, (ULONG_PTR)NameU, 0, 0);
}
Fcb->RFCB.NodeTypeCode = NODE_TYPE_FCB;
Fcb->RFCB.NodeByteSize = sizeof(VFATFCB);
Fcb->PathNameU.Length = 0;
Fcb->PathNameU.Buffer = Fcb->PathNameBuffer;
Fcb->PathNameU.MaximumLength = PathNameBufferLength;

View file

@ -410,6 +410,8 @@ extern PVFAT_GLOBAL_DATA VfatGlobalData;
#define FCB_IS_VOLUME 0x0010
#define FCB_IS_DIRTY 0x0020
#define NODE_TYPE_FCB ((CSHORT)0x0502)
typedef struct _VFATFCB
{
/* FCB header required by ROS/NT */