Author: spetreolle
Date: Sun Jan 17 16:59:55 2016
New Revision: 70606
URL:
http://svn.reactos.org/svn/reactos?rev=70606&view=rev
Log:
[FLOPPY]
Check for controller configuration status.
CORE-10761 #comment Please retest.
Modified:
trunk/reactos/drivers/storage/floppy/floppy.c
Modified: trunk/reactos/drivers/storage/floppy/floppy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/floppy/flo…
==============================================================================
--- trunk/reactos/drivers/storage/floppy/floppy.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/floppy/floppy.c [iso-8859-1] Sun Jan 17 16:59:55 2016
@@ -680,7 +680,11 @@
TRACE_(FLOPPY, "InitController called with Controller 0x%p\n",
ControllerInfo);
/* Get controller in a known state */
- HwConfigure(ControllerInfo, FALSE, TRUE, TRUE, 0, 0);
+ if(HwConfigure(ControllerInfo, FALSE, TRUE, TRUE, 0, 0) != STATUS_SUCCESS)
+ {
+ WARN_(FLOPPY, "InitController: unable to configure controller\n");
+ return STATUS_IO_DEVICE_ERROR;
+ }
/* Get the controller version */
ControllerVersion = HwGetVersion(ControllerInfo);