summaryrefslogtreecommitdiffstats
path: root/redir.c
diff options
context:
space:
mode:
Diffstat (limited to 'redir.c')
-rw-r--r--redir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/redir.c b/redir.c
index 02a0984..8ff9a98 100644
--- a/redir.c
+++ b/redir.c
@@ -447,7 +447,8 @@ static int redir_ider_command(struct redir *r, unsigned int seqno)
{
struct ider_command_written_message *msg =
(struct ider_command_written_message *)r->buf;
- unsigned char device = msg->drive_select & 0x10 ? 0xb0 : 0xa0;
+ unsigned char device = msg->drive_select & 0x10 ?
+ IDER_DEVICE_CDROM : IDER_DEVICE_FLOPPY;
bool use_dma = msg->feature & 1;
int i;