[ros-dev] FreeLdr: FsOpenVolume

Filip Navara xnavara at volny.cz
Sat Oct 30 18:06:32 CEST 2004


Hi,

since there have been several reports of the ROS CDs failing to boot 
with the "Invalid partition table magic" message I though if the line 85 
in freeldr/fs/fs.c can be the cause. If the CD-ROM drive would get 
assigned the 0x80 BIOS number (can this everr happen?) then we would end 
up reading partition table from it and crash later.
Any thoughts?

Regards,
Filip
-------------- next part --------------
Index: freeldr/fs/fs.c
===================================================================
RCS file: /CVS/ReactOS/freeldr/freeldr/fs/fs.c,v
retrieving revision 1.14
diff -u -r1.14 fs.c
--- freeldr/fs/fs.c	25 May 2004 21:31:27 -0000	1.14
+++ freeldr/fs/fs.c	30 Oct 2004 15:01:41 -0000
@@ -82,7 +82,7 @@
 	}
 
 	// Check for ISO9660 file system type
-	if (DriveNumber > 0x80 && FsRecIsIso9660(DriveNumber))
+	if (DriveNumber >= 0x80 && FsRecIsIso9660(DriveNumber))
 	{
 		DbgPrint((DPRINT_FILESYSTEM, "Drive is a cdrom drive. Assuming ISO-9660 file system.\n"));
 


More information about the Ros-dev mailing list