X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_hotkeys.c;h=00041a94de672544cca8a81defafb8afbf78e960;hb=3ad4532bb952dbcb28a2b9fa72d7f1f87b5f8fd4;hp=2a93b541a13af7aa2288f7d9cc691eb0a5db11b8;hpb=bf0187772ecfb475eedf5e0e9b8460b4f1a3f445;p=tpg%2Facess2.git 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; }