diff --git a/reactos/drivers/filesystems/fs_rec/ext2.c b/reactos/drivers/filesystems/fs_rec/ext2.c index 16109abcc94..94464617e1b 100644 --- a/reactos/drivers/filesystems/fs_rec/ext2.c +++ b/reactos/drivers/filesystems/fs_rec/ext2.c @@ -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)) diff --git a/reactos/drivers/filesystems/fs_rec/ext2.h b/reactos/drivers/filesystems/fs_rec/ext2.h index 12018d13d24..7ff0303fe3d 100644 --- a/reactos/drivers/filesystems/fs_rec/ext2.h +++ b/reactos/drivers/filesystems/fs_rec/ext2.h @@ -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