Usermode/AxWin3 - Fixed only one hotkey set being checked
authorJohn Hodge <[email protected]>
Sat, 27 Jul 2013 06:05:45 +0000 (14:05 +0800)
committerJohn Hodge <[email protected]>
Sat, 27 Jul 2013 06:05:45 +0000 (14:05 +0800)
Usermode/Applications/axwin3_src/WM/wm_hotkeys.c

index 2a93b54..00041a9 100644 (file)
@@ -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;
 }
 

UCC git Repository :: git.ucc.asn.au