--MagicValues;

svn path=/trunk/; revision=70796
This commit is contained in:
Pierre Schweitzer 2016-02-28 11:27:05 +00:00
parent 429d288e03
commit cb7c75c1d1
2 changed files with 4 additions and 2 deletions

View file

@ -53,10 +53,10 @@ FsRecExt2FsControl(IN PDEVICE_OBJECT DeviceObject,
if (FsRecGetDeviceSectorSize(MountDevice, &SectorSize))
{
/* Try to read the superblock */
Offset.QuadPart = 0x400;
Offset.QuadPart = EXT2_SB_OFFSET;
if (FsRecReadBlock(MountDevice,
&Offset,
0x400,
EXT2_SB_SIZE,
SectorSize,
(PVOID)&Spb,
&DeviceError))

View file

@ -44,3 +44,5 @@ C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, LastCheck) == 0x40);
C_ASSERT(FIELD_OFFSET(EXT2_SUPER_BLOCK, DefResUid) == 0x50);
#define EXT2_SUPER_MAGIC 0xEF53
#define EXT2_SB_OFFSET 0x400
#define EXT2_SB_SIZE 0x400