fdc: fix implied seek while there is no media in drive
authorPavel Hrdina <phrdina@redhat.com>
Wed, 13 Jun 2012 13:43:11 +0000 (15:43 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:43 +0000 (14:03 +0200)
commitc52acf60b6c12ff5eb58eb6ac568c159ae0c8737
tree7ffefd9b9fee15ca9828e3a47913393f6d5e7ff4
parentaf7b708db2d03eb47f7ba44a050439ad9ee65e7a
fdc: fix implied seek while there is no media in drive

The Windows uses 'READ' command at the start of an instalation
without checking the 'dir' register. We have to abort the transfer
with an abnormal termination if there is no media in the drive.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/fdc.c