mirror of https://github.com/snes9xgit/snes9x.git
Fix NULL dereference bug
This commit is contained in:
parent
0d87a035b8
commit
6fcfe8c3f8
|
@ -72,7 +72,7 @@ bool SetKeyCode(int16 keyCode, S9xButtonCode buttonCode, int8 player, int16 *old
|
|||
*oldButtonCode = (S9xButtonCode)keyCodes[keyCode].buttonCode;
|
||||
}
|
||||
|
||||
if (*oldPlayer != NULL )
|
||||
if (oldPlayer != NULL )
|
||||
{
|
||||
*oldPlayer = (S9xButtonCode)keyCodes[keyCode].player;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue