SiS 55xx: Add sanity check to the PCI to ISA bridge close code, fixes #4304.
This commit is contained in:
@@ -1197,7 +1197,8 @@ 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;
|
||||
|
||||
fp = nvr_fopen(dev->fn, "wb");
|
||||
if (dev->fn != NULL)
|
||||
fp = nvr_fopen(dev->fn, "wb");
|
||||
|
||||
if (fp != NULL) {
|
||||
(void) fwrite(dev->apc_regs, 256, 1, fp);
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user