From f8b87477ce8c372db4b5e8ae630a5e642ed31b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 29 Jul 2012 15:45:57 +0000 Subject: [PATCH] freeldr: seek to correct sector number, even after ~4GB. See issue #6669 for more details. svn path=/trunk/; revision=56981 --- reactos/boot/freeldr/freeldr/fs/fat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/boot/freeldr/freeldr/fs/fat.c b/reactos/boot/freeldr/freeldr/fs/fat.c index 49fe95af8cf..ce37e9eb029 100644 --- a/reactos/boot/freeldr/freeldr/fs/fat.c +++ b/reactos/boot/freeldr/freeldr/fs/fat.c @@ -1338,7 +1338,8 @@ BOOLEAN FatReadVolumeSectors(PFAT_VOLUME_INFO Volume, ULONG SectorNumber, ULONG // // Seek to right position // - Position.QuadPart = SectorNumber * 512; + Position.HighPart = SectorNumber >> 9; + Position.LowPart = SectorNumber << 9; ret = ArcSeek(Volume->DeviceId, &Position, SeekAbsolute); if (ret != ESUCCESS) {