Author: hpoussin Date: Mon Jul 30 06:12:58 2012 New Revision: 56993
URL: http://svn.reactos.org/svn/reactos?rev=56993&view=rev Log: [FREELDR] i386: support drives bigger than ~4GB See issue #6669 for more details.
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c [iso-8859-1] Mon Jul 30 06:12:58 2012 @@ -150,8 +150,7 @@ 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; }