Fixed some CD-ROM-related bugs;

Added sanity checks to the device close functions of the Hercules family graphics cards;
Cleaned up, fixed the bugs in, and reworked the implementation of the Adaptec/BusLogic BIOS command handler;
Removed some scsi_device.c functions that have now become useless;
Removed some excess stuff from pc_init_modules().
This commit is contained in:
OBattler
2018-10-11 10:34:12 +02:00
parent defada30d4
commit b8d3992c07
8 changed files with 283 additions and 281 deletions

View File

@@ -8,7 +8,7 @@
*
* Hercules emulation.
*
* Version: @(#)vid_hercules.c 1.0.13 2018/10/10
* Version: @(#)vid_hercules.c 1.0.14 2018/10/11
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -430,7 +430,12 @@ hercules_close(void *priv)
{
hercules_t *dev = (hercules_t *)priv;
free(dev->vram);
if (!dev)
return;
if (dev->vram)
free(dev->vram);
free(dev);
}

View File

@@ -8,7 +8,7 @@
*
* Hercules Plus emulation.
*
* Version: @(#)vid_herculesplus.c 1.0.11 2018/10/10
* Version: @(#)vid_herculesplus.c 1.0.12 2018/10/11
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -653,7 +653,12 @@ herculesplus_close(void *priv)
{
herculesplus_t *dev = (herculesplus_t *)priv;
free(dev->vram);
if (!dev)
return;
if (dev->vram)
free(dev->vram);
free(dev);
}

View File

@@ -8,7 +8,7 @@
*
* Hercules InColor emulation.
*
* Version: @(#)vid_incolor.c 1.0.12 2018/10/10
* Version: @(#)vid_incolor.c 1.0.13 2018/10/11
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -1061,7 +1061,12 @@ incolor_close(void *priv)
{
incolor_t *dev = (incolor_t *)priv;
free(dev->vram);
if (!dev)
return;
if (dev->vram)
free(dev->vram);
free(dev);
}