mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
Improved the fix.
This commit is contained in:
@@ -2651,8 +2651,7 @@ ide_board_close(int board)
|
||||
|
||||
if (dev->type == IDE_ATAPI)
|
||||
dev->tf->atastat = DRDY_STAT | DSC_STAT;
|
||||
|
||||
if ((dev->type == IDE_HDD) && (dev->tf != NULL)) {
|
||||
else if (!(dev->type & IDE_SHADOW) && (dev->tf != NULL)) {
|
||||
free(dev->tf);
|
||||
dev->tf = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user