From 97856025e5be768f0baa6de19f565860d8c0ff47 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 10 Aug 2016 01:19:12 +0200 Subject: [PATCH] Fixed hopefully the last errors. --- src/ide.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ide.c b/src/ide.c index 7714036c0..c60b4b2cb 100644 --- a/src/ide.c +++ b/src/ide.c @@ -918,16 +918,16 @@ void resetide(void) ide_set_signature(&ide_drives[d]); - if (&ide_drives[d]->type == IDE_HDD) + if (ide_drives[d].type == IDE_HDD) { - &ide_drives[d]->dma_identify_data[0] = 7; - &ide_drives[d]->dma_identify_data[1] = 7 | (1 << (val + 8)); - &ide_drives[d]->dma_identify_data[2] = 0x3f; + ide_drives[d].dma_identify_data[0] = 7; + ide_drives[d].dma_identify_data[1] = 7 | (1 << (val + 8)); + ide_drives[d].dma_identify_data[2] = 0x3f; } - else if (&ide_drives[d]->type == IDE_CDROM) + else if (ide_drives[d].type == IDE_CDROM) { - &ide_drives[d]->dma_identify_data[0] = &ide_drives[d]->dma_identify_data[1] = 7; - &ide_drives[d]->dma_identify_data[2] = 0x3f; + ide_drives[d].dma_identify_data[0] = ide_drives[d].dma_identify_data[1] = 7; + ide_drives[d].dma_identify_data[2] = 0x3f; } } @@ -947,10 +947,10 @@ void resetide(void) ide_set_signature(&ide_drives[d]); - if (&ide_drives[d]->type == IDE_CDROM) + if (ide_drives[d].type == IDE_CDROM) { - &ide_drives[d]->dma_identify_data[0] = &ide_drives[d]->dma_identify_data[1] = 7; - &ide_drives[d]->dma_identify_data[2] = 0x3f; + ide_drives[d].dma_identify_data[0] = ide_drives[d].dma_identify_data[1] = 7; + ide_drives[d].dma_identify_data[2] = 0x3f; } } /* REMOVE WHEN SUBMITTING TO MAINLINE - END */