Author: fireball Date: Sat Oct 10 15:05:02 2009 New Revision: 43362
URL: http://svn.reactos.org/svn/reactos?rev=43362&view=rev Log: [freeldr] Andrew Steinborn asteinborn78@gmail.com - Display error message when boot sector reading fails. See issue #4641 for more details.
Modified: trunk/reactos/boot/freeldr/freeldr/miscboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/miscboot.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/miscbo... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/miscboot.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/miscboot.c [iso-8859-1] Sat Oct 10 15:05:02 2009 @@ -62,6 +62,7 @@ // Read boot sector if (!FsReadFile(FilePointer, 512, &BytesRead, (void*)0x7c00) || (BytesRead != 512)) { + UiMessageBox("Unable to read boot sector."); return; }
@@ -133,6 +134,7 @@ // If this fails then abort if (!MachDiskReadLogicalSectors(DriveNumber, PartitionTableEntry.SectorCountBeforePartition, 1, (PVOID)0x7C00)) { + UiMessageBox("Unable to read partition's boot sector."); return; }
@@ -186,6 +188,7 @@ // If this fails then abort if (!MachDiskReadLogicalSectors(DriveNumber, 0, 1, (PVOID)0x7C00)) { + UiMessageBox("Unable to read boot sector"); return; }