[ros-diffs] [cgutman] 53690: [FREELOADER] - Use a larger data type to iterate through the disk buffer to avoid an infinite loop with broken BIOSes

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Sep 11 15:32:15 UTC 2011


Author: cgutman
Date: Sun Sep 11 15:32:15 2011
New Revision: 53690

URL: http://svn.reactos.org/svn/reactos?rev=53690&view=rev
Log:
[FREELOADER]
- Use a larger data type to iterate through the disk buffer to avoid an infinite loop with broken BIOSes

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
    trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c

Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c?rev=53690&r1=53689&r2=53690&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] Sun Sep 11 15:32:15 2011
@@ -801,7 +801,8 @@
     PCM_PARTIAL_RESOURCE_LIST PartialResourceList;
     PCM_INT13_DRIVE_PARAMETER Int13Drives;
     GEOMETRY Geometry;
-    UCHAR DiskCount, i;
+    UCHAR DiskCount;
+    USHORT i;
     ULONG Size;
     BOOLEAN Changed;
 

Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c?rev=53690&r1=53689&r2=53690&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxhw.c [iso-8859-1] Sun Sep 11 15:32:15 2011
@@ -324,7 +324,8 @@
     PCM_INT13_DRIVE_PARAMETER Int13Drives;
     GEOMETRY Geometry;
     PCONFIGURATION_COMPONENT_DATA DiskKey, ControllerKey;
-    UCHAR DiskCount, i;
+    UCHAR DiskCount;
+    USHORT i;
     ULONG Size;
     BOOLEAN Changed;
     




More information about the Ros-diffs mailing list