[FASTFAT] When allocating a FCB, set its node type code.
authorPierre Schweitzer <pierre@reactos.org>
Fri, 27 Apr 2018 16:56:31 +0000 (18:56 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 27 Apr 2018 16:56:31 +0000 (18:56 +0200)
We set the same value as MS FastFAT driver for consistency.

drivers/filesystems/fastfat/fcb.c
drivers/filesystems/fastfat/vfat.h

index 4a103b0..f96a317 100644 (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;
index 487b5f9..429120c 100644 (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 */