Fixed some EuroPC bugs (one had to do with the NVR), the EuroPC now works again.

This commit is contained in:
OBattler
2018-11-01 10:49:19 +01:00
parent d5f8fe3e6b
commit 21235eeac2
2 changed files with 3 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
*
* Implement a generic NVRAM/CMOS/RTC device.
*
* Version: @(#)nvr.c 1.0.15 2018/10/17
* Version: @(#)nvr.c 1.0.16 2018/11/01
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>,
* David Hrdlička, <hrdlickadavid@outlook.com>
@@ -322,7 +322,7 @@ nvr_period_recalc(void)
/* Make sure we have been initialized. */
if (saved_nvr == NULL) return;
if (saved_nvr->size != 0)
if ((saved_nvr->size != 0) && saved_nvr->recalc)
saved_nvr->recalc(saved_nvr);
}