SiS 55xx: Add sanity check to the PCI to ISA bridge close code, fixes #4304.

This commit is contained in:
OBattler
2024-03-28 18:12:30 +01:00
parent 86c6cc27ab
commit 2fd5fe86cd
2 changed files with 2 additions and 2 deletions

View File

@@ -1197,6 +1197,7 @@ sis_5513_pci_to_isa_close(void *priv)
sis_5513_pci_to_isa_t *dev = (sis_5513_pci_to_isa_t *) priv;
FILE *fp = NULL;
if (dev->fn != NULL)
fp = nvr_fopen(dev->fn, "wb");
if (fp != NULL) {

View File

@@ -43,7 +43,6 @@
#include <86box/sis_55xx.h>
#include <86box/chipset.h>
#define ENABLE_SIS_5581_LOG 1
#ifdef ENABLE_SIS_5581_LOG
int sis_5581_do_log = ENABLE_SIS_5581_LOG;