Skip to content

Commit b5bb7cf

Browse files
committed
Fix missed cast to ushort on prior commit.
1 parent ef02b69 commit b5bb7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Core/Common/RubberduckHooks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private bool HandleHotkeyMessage(IntPtr wParam)
172172
var processed = false;
173173
try
174174
{
175-
var hook = Hooks.OfType<Hotkey>().SingleOrDefault(k => k.HotkeyInfo.HookId == wParam);
175+
var hook = Hooks.OfType<Hotkey>().SingleOrDefault(k => k.HotkeyInfo.HookId == (ushort)wParam);
176176
if (hook != null)
177177
{
178178
hook.OnMessageReceived();

0 commit comments

Comments
 (0)