[CDROM] Set proper status on disk verify
authorPierre Schweitzer <pierre@reactos.org>
Sun, 19 Aug 2018 09:11:21 +0000 (11:11 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 19 Aug 2018 09:11:21 +0000 (11:11 +0200)
This avoids an assert under certain conditions in CDFS.
Check cdrom_new for reference.

CORE-14873

drivers/storage/class/cdrom/cdrom.c

index 69ddd19..a1c477e 100644 (file)
@@ -7156,7 +7156,7 @@ Return Value:
                         // upon completion of the read capacity.
                         //
 
-                        IrpToComplete->IoStatus.Status = STATUS_VERIFY_REQUIRED;
+                        IrpToComplete->IoStatus.Status = STATUS_IO_DEVICE_ERROR;
                         IoMarkIrpPending(IrpToComplete);
 
                         IoCallDriver(DeviceExtension->PortDeviceObject, irp);