mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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:
parent
579a784e04
commit
315f9a13d4
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue