From: John Hodge Date: Sat, 27 Jul 2013 06:05:45 +0000 (+0800) Subject: Usermode/AxWin3 - Fixed only one hotkey set being checked X-Git-Tag: rel0.15~327 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=a091753c1343f11c6d3594453470238da09b1517;p=tpg%2Facess2.git Usermode/AxWin3 - Fixed only one hotkey set being checked --- 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; }