CD-ROM is no longer reloaded if not in ejected/empty state;

ATAPI commands that accept a buffer length allocation now send no data if the allocated length is 0.
This commit is contained in:
OBattler
2017-01-04 06:33:18 +01:00
parent 6af40b5b16
commit 0dc379404c
2 changed files with 62 additions and 2 deletions

View File

@@ -1342,7 +1342,7 @@ void win_cdrom_reload()
HMENU hmenu;
hmenu=GetMenu(ghwnd);
int new_cdrom_drive;
if ((cdrom_drive == old_cdrom_drive) || (old_cdrom_drive == 0))
if ((cdrom_drive == old_cdrom_drive) || (old_cdrom_drive == 0) || (cdrom_drive != 0))
{
/* Switch from empty to empty. Do nothing. */
return;