diff --git a/src/mame/machine/stvcd.c b/src/mame/machine/stvcd.c index 7bf850c4517..f38169ea98a 100644 --- a/src/mame/machine/stvcd.c +++ b/src/mame/machine/stvcd.c @@ -1560,7 +1560,9 @@ void stvcd_exit(running_machine* machine) if (cdrom) { + #ifndef MESS cdrom_close(cdrom); + #endif cdrom = (cdrom_file *)NULL; } }