From cb7c75c1d10bae867ec8203290e06281c05810d9 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 28 Feb 2016 11:27:05 +0000 Subject: [PATCH] [FS_REC] --MagicValues; svn path=/trunk/; revision=70796 --- reactos/drivers/filesystems/fs_rec/ext2.c | 4 ++-- reactos/drivers/filesystems/fs_rec/ext2.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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