mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
[FREELDR] iso.h: Fix definition of the "Primary Volume Descriptor" PVD structure (#7367)
For reference, see the cdfs/cd.h RAW_ISO_VD structure. Each of the old "VolumeSetSize", "VolumeSequenceNumber" and "LogicalBlockSize" ULONG fields actually correspond to pairs of USHORT fields: "VolumeSetSizeL" and "VolumeSetSizeM", etc., where the "L" one contains the value in little-endian format, while the "M" one contains the same value in big-endian format. Additionally, use UCHARs for the character arrays.
This commit is contained in:
parent
5d99a70597
commit
56eede6e38
1 changed files with 11 additions and 8 deletions
|
@ -60,18 +60,21 @@ typedef struct _VD_HEADER
|
||||||
typedef struct _PVD
|
typedef struct _PVD
|
||||||
{
|
{
|
||||||
UCHAR VdType; // 1
|
UCHAR VdType; // 1
|
||||||
CHAR StandardId[5]; // 2-6
|
UCHAR StandardId[5]; // 2-6
|
||||||
UCHAR VdVersion; // 7
|
UCHAR VdVersion; // 7
|
||||||
UCHAR unused0; // 8
|
UCHAR unused0; // 8
|
||||||
CHAR SystemId[32]; // 9-40
|
UCHAR SystemId[32]; // 9-40
|
||||||
CHAR VolumeId[32]; // 41-72
|
UCHAR VolumeId[32]; // 41-72
|
||||||
UCHAR unused1[8]; // 73-80
|
UCHAR unused1[8]; // 73-80
|
||||||
ULONG VolumeSpaceSizeL; // 81-84
|
ULONG VolumeSpaceSizeL; // 81-84
|
||||||
ULONG VolumeSpaceSizeM; // 85-88
|
ULONG VolumeSpaceSizeM; // 85-88
|
||||||
UCHAR unused2[32]; // 89-120
|
UCHAR unused2[32]; // 89-120
|
||||||
ULONG VolumeSetSize; // 121-124
|
USHORT VolumeSetSizeL; // 121-122
|
||||||
ULONG VolumeSequenceNumber; // 125-128
|
USHORT VolumeSetSizeM; // 123-124
|
||||||
ULONG LogicalBlockSize; // 129-132
|
USHORT VolumeSeqNumberL; // 125-126
|
||||||
|
USHORT VolumeSeqNumberM; // 127-128
|
||||||
|
USHORT LogicalBlockSizeL; // 129-130
|
||||||
|
USHORT LogicalBlockSizeM; // 131-132
|
||||||
ULONG PathTableSizeL; // 133-136
|
ULONG PathTableSizeL; // 133-136
|
||||||
ULONG PathTableSizeM; // 137-140
|
ULONG PathTableSizeM; // 137-140
|
||||||
ULONG LPathTablePos; // 141-144
|
ULONG LPathTablePos; // 141-144
|
||||||
|
@ -79,8 +82,8 @@ typedef struct _PVD
|
||||||
ULONG MPathTablePos; // 149-152
|
ULONG MPathTablePos; // 149-152
|
||||||
ULONG MOptPathTablePos; // 153-156
|
ULONG MOptPathTablePos; // 153-156
|
||||||
DIR_RECORD RootDirRecord; // 157-190
|
DIR_RECORD RootDirRecord; // 157-190
|
||||||
CHAR VolumeSetIdentifier[128]; // 191-318
|
UCHAR VolumeSetIdentifier[128]; // 191-318
|
||||||
CHAR PublisherIdentifier[128]; // 319-446
|
UCHAR PublisherIdentifier[128]; // 319-446
|
||||||
|
|
||||||
/* more data ... */
|
/* more data ... */
|
||||||
} PVD, *PPVD;
|
} PVD, *PPVD;
|
||||||
|
|
Loading…
Reference in a new issue