Fixed: Calling null callback "hookedKeyboardCallback"

This commit is contained in:
Yeechan Lu 2014-01-28 21:23:50 +08:00
parent 99b0defcf7
commit 0e44cae1e3

View File

@ -101,7 +101,8 @@ namespace WinAlfred.Helper
wParam.ToUInt32() == (int)KeyEvent.WM_SYSKEYDOWN ||
wParam.ToUInt32() == (int)KeyEvent.WM_SYSKEYUP)
{
continues = hookedKeyboardCallback((KeyEvent)wParam.ToUInt32(), Marshal.ReadInt32(lParam), CheckModifiers());
if (hookedKeyboardCallback != null)
continues = hookedKeyboardCallback((KeyEvent)wParam.ToUInt32(), Marshal.ReadInt32(lParam), CheckModifiers());
}
}