diff --git a/SabreTools.Models/CFB/DirectoryEntry.cs b/SabreTools.Models/CFB/DirectoryEntry.cs index 8f3817b..21acefd 100644 --- a/SabreTools.Models/CFB/DirectoryEntry.cs +++ b/SabreTools.Models/CFB/DirectoryEntry.cs @@ -22,18 +22,18 @@ namespace SabreTools.Models.CFB [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] public string? Name; - /// - /// This field MUST be 0x00, 0x01, 0x02, or 0x05, depending on the - /// actual type of object. All other values are not valid. - /// - public ushort NameLength; - /// /// This field MUST match the length of the Directory Entry Name Unicode /// string in bytes. The length MUST be a multiple of 2 and include the /// terminating null character in the count. This length MUST NOT exceed 64, /// the maximum size of the Directory Entry Name field. /// + public ushort NameLength; + + /// + /// This field MUST be 0x00, 0x01, 0x02, or 0x05, depending on the + /// actual type of object. All other values are not valid. + /// [MarshalAs(UnmanagedType.U1)] public ObjectType ObjectType;