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;
}
strcpy((char*)t->Name, ActionName);
t->Window = Target;
t->Index = Index;
+ t->Next = NULL;
// TODO: Register to be informed when the window dies/closes?