[FREELDR]
authorCameron Gutman <aicommander@gmail.com>
Thu, 3 Jun 2010 07:48:35 +0000 (07:48 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 3 Jun 2010 07:48:35 +0000 (07:48 +0000)
- Verify that Int 13 extensions are supported before trying to use them

svn path=/trunk/; revision=47530

reactos/boot/freeldr/freeldr/arch/i386/i386disk.c

index a1e9877..beeb15c 100644 (file)
@@ -135,6 +135,9 @@ BOOLEAN DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT B
 
        DPRINTM(DPRINT_DISK, "DiskGetExtendedDriveParameters()\n");
 
 
        DPRINTM(DPRINT_DISK, "DiskGetExtendedDriveParameters()\n");
 
+       if (!DiskInt13ExtensionsSupported(DriveNumber))
+            return FALSE;
+
        // Initialize transfer buffer
        *Ptr = BufferSize;
 
        // Initialize transfer buffer
        *Ptr = BufferSize;