From 265377c54e8a25f9030d7078190a50b771f6497b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 5 Nov 2015 21:04:37 +0200 Subject: [PATCH] Init CD driver subsystem only once. --- blkdev.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blkdev.cpp b/blkdev.cpp index e2532092..168cece8 100644 --- a/blkdev.cpp +++ b/blkdev.cpp @@ -465,7 +465,6 @@ int sys_command_open (int unitnum) blkdev_fix_prefs (&currprefs); if (!dev_init) { device_func_init (0); - dev_init = true; } if (st->isopen) { @@ -519,12 +518,14 @@ void device_func_reset (void) st->cdimagefileinuse = false; st->newimagefile[0] = 0; } + dev_init = false; } int device_func_init (int flags) { blkdev_fix_prefs (&currprefs); install_driver (flags); + dev_init = true; return 1; } -- 2.47.3