[ros-diffs] [arty] 44139: It's a good thing the fat driver allocates blocks early in the partition. Likely also fixes some problems booting on partition number > 1.

arty at svn.reactos.org arty at svn.reactos.org
Fri Nov 13 16:31:45 CET 2009


Author: arty
Date: Fri Nov 13 16:31:45 2009
New Revision: 44139

URL: http://svn.reactos.org/svn/reactos?rev=44139&view=rev
Log:
It's a good thing the fat driver allocates blocks early in the partition.
Likely also fixes some problems booting on partition number > 1.

Modified:
    branches/arty-newcc/boot/freeldr/freeldr/arch/i386/hardware.c

Modified: branches/arty-newcc/boot/freeldr/freeldr/arch/i386/hardware.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/boot/freeldr/freeldr/arch/i386/hardware.c?rev=44139&r1=44138&r2=44139&view=diff
==============================================================================
--- branches/arty-newcc/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] (original)
+++ branches/arty-newcc/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] Fri Nov 13 16:31:45 2009
@@ -503,8 +503,7 @@
     if (Position->LowPart & (Context->SectorSize - 1))
         return EINVAL;
 
-    /* FIXME: take HighPart into account */
-    Context->SectorNumber = Position->LowPart / Context->SectorSize;
+    Context->SectorNumber = Position->QuadPart / Context->SectorSize;
     return ESUCCESS;
 }
 




More information about the Ros-diffs mailing list