OSDN Git Service

[VM][MZ2800] Fix crash at building VM. Thanks to http://hanabi.2ch.net/test/read...
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2800 / mz2800.cpp
index a41eab0..7d6fa73 100644 (file)
@@ -128,7 +128,8 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
        memory->set_context_crtc(crtc);
        mouse->set_context_sio(sio);
        if(config.printer_device_type == 0) {  
-               PRNFILE *prnfile = (PRNFILE *)printer;
+               //PRNFILE *prnfile = (PRNFILE *)printer;
+               PRNFILE *prnfile = new PRNFILE(this, emu);
                prnfile->set_context_busy(not_busy, SIG_NOT_INPUT, 1);
                printer->set_context_prn(prnfile);
        } else if(config.printer_device_type == 1) {