From e78aab93b00dadcf4e0b06cc3f7bf65c346a54a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 30 Jul 2012 06:12:58 +0000 Subject: [PATCH] [FREELDR] i386: support drives bigger than ~4GB See issue #6669 for more details. svn path=/trunk/; revision=56993 --- reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c b/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c index 52b775ead83..1eb5e84e950 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c @@ -150,8 +150,7 @@ static LONG DiskSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode) if (Position->LowPart & (Context->SectorSize - 1)) return EINVAL; - /* FIXME: take HighPart into account */ - Context->SectorNumber = Position->LowPart / Context->SectorSize; + Context->SectorNumber = (ULONG)(Position->QuadPart / Context->SectorSize); return ESUCCESS; }