From 6fcfe8c3f86b6e3031d4bcdb3d0d339af69ace93 Mon Sep 17 00:00:00 2001 From: Michael Buckley Date: Sun, 3 Nov 2019 08:09:43 -0800 Subject: [PATCH] Fix NULL dereference bug --- macosx/mac-keyboard.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/mac-keyboard.mm b/macosx/mac-keyboard.mm index a0a61701..78e016cd 100755 --- a/macosx/mac-keyboard.mm +++ b/macosx/mac-keyboard.mm @@ -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; }