From a091753c1343f11c6d3594453470238da09b1517 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 27 Jul 2013 14:05:45 +0800 Subject: [PATCH] Usermode/AxWin3 - Fixed only one hotkey set being checked --- Usermode/Applications/axwin3_src/WM/wm_hotkeys.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c index 2a93b541..00041a94 100644 --- a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c +++ b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c @@ -41,9 +41,7 @@ void WM_Hotkey_Register(int nKeys, uint32_t *Keys, const char *ActionName) strcpy((char*)h->Target, ActionName); memcpy(h->Keys, Keys, nKeys * sizeof(uint32_t)); - h->Next = NULL; - if( gpWM_Hotkeys ) - gpWM_Hotkeys->Next = h; + h->Next = gpWM_Hotkeys; gpWM_Hotkeys = h; } -- 2.20.1