mirror of
https://github.com/holub/mame
synced 2025-05-16 02:42:05 +03:00
Fixed crash for PC based MAME drivers (no whatsnew)
This commit is contained in:
parent
551ee8ee7e
commit
f0d87d6941
@ -2428,7 +2428,7 @@ static void input_port_update_hook(running_machine *machine, const input_port_co
|
|||||||
keybuf = get_buffer(machine);
|
keybuf = get_buffer(machine);
|
||||||
|
|
||||||
/* is the key down right now? */
|
/* is the key down right now? */
|
||||||
if (keybuf->status_keydown && (keybuf->begin_pos != keybuf->end_pos))
|
if (keybuf && keybuf->status_keydown && (keybuf->begin_pos != keybuf->end_pos))
|
||||||
{
|
{
|
||||||
/* identify the character that is down right now, and its component codes */
|
/* identify the character that is down right now, and its component codes */
|
||||||
ch = keybuf->buffer[keybuf->begin_pos];
|
ch = keybuf->buffer[keybuf->begin_pos];
|
||||||
|
Loading…
Reference in New Issue
Block a user