Author: cgutman
Date: Sun Jul 31 18:47:35 2011
New Revision: 53006
URL:
http://svn.reactos.org/svn/reactos?rev=53006&view=rev
Log:
[FLOPPY]
- Report recalibration failure if the EC flag is set after seeking to fix a hang while
trying to read
- Thanks to igorko for testing
Modified:
trunk/reactos/drivers/storage/floppy/hardware.c
Modified: trunk/reactos/drivers/storage/floppy/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/har…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/hardware.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/hardware.c [iso-8859-1] Sun Jul 31 18:47:35 2011
@@ -448,7 +448,10 @@
/* Is the equipment check flag set? Could be no disk in drive... */
if((Buffer[0] & SR0_EQUIPMENT_CHECK) == SR0_EQUIPMENT_CHECK)
- INFO_(FLOPPY, "HwRecalibrateResult: Seeked to track 0 successfully, but EC
is set; returning STATUS_SUCCESS anyway\n");
+ {
+ WARN_(FLOPPY, "HwRecalibrateResult: Seeked to track 0 successfully, but EC
is set; returning failure\n");
+ return STATUS_UNSUCCESSFUL;
+ }
return STATUS_SUCCESS;
}