Also fix #2880 in old IDE stack.

Just in case.
This commit is contained in:
Adrien Destugues
2015-06-13 21:59:19 +02:00
parent dfc20f6f05
commit 5c96971937
@@ -123,7 +123,7 @@ write_command_block_regs(void *channel_cookie, ide_task_file *tf,
return B_ERROR;
for (i = 0; i < 7; i++) {
if (((1 << (i-7)) & mask) != 0) {
if (((1 << (i + 7)) & mask) != 0) {
TRACE("write_command_block_regs(): %x->HI(%x)\n",
tf->raw.r[i + 7], i);
channel->isa->write_io_8(ioaddr + 1 + i, tf->raw.r[i + 7]);