PRINTER-DRV: fix crash when initializing 1520
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
After buiding latest sources, VICE brutally crashes immediately after run on my PC.
This happens because there is a bug into drv-1520
.
In function drv_1520_init_resources()
, the pointer to drv_select
is not initialized and not NULL
in debug mode. As result, the emulators tried to call that invalid pointer, causing the crash.
While looking to this issue, I also noticed that also drv-ascii
and drv-raw
have a redundand initialization of drv_select
, so I removed the useless one.
Attached patch fixes the issue.
The patch.
yes, i noticed this too, related to
https://sourceforge.net/p/vice-emu/code/43621/
applied in r43652, thanks!