fixed usage of uninitialized members in kbdc8042_device (nw)

This commit is contained in:
Oliver Stöneberg 2014-04-24 07:42:23 +00:00
parent ec13217c5f
commit 2f52162e8a

View File

@ -227,6 +227,8 @@ void kbdc8042_device::device_start()
m_output_buffer_empty_cb.resolve_safe(); m_output_buffer_empty_cb.resolve_safe();
m_speaker_cb.resolve(); m_speaker_cb.resolve();
m_operation_write_state = 0; /* first write to 0x60 might occur before anything can set this */ m_operation_write_state = 0; /* first write to 0x60 might occur before anything can set this */
memset(&m_keyboard, 0x00, sizeof(m_keyboard));
memset(&m_mouse, 0x00, sizeof(m_mouse));
} }
/*------------------------------------------------- /*-------------------------------------------------