From 5f759fddfe5bc4c64c87b1b5e6b2ecb4c7787db7 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 29 Nov 2013 08:04:59 +0000 Subject: [PATCH] CtrlCore: Fixed issue with WM_HOTKEY (thanks Zbych!) git-svn-id: svn://ultimatepp.org/upp/trunk@6614 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/Win32Wnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/CtrlCore/Win32Wnd.cpp b/uppsrc/CtrlCore/Win32Wnd.cpp index b1ae22092..b9a152f6f 100644 --- a/uppsrc/CtrlCore/Win32Wnd.cpp +++ b/uppsrc/CtrlCore/Win32Wnd.cpp @@ -754,7 +754,7 @@ void Ctrl::UnregisterSystemHotKey(int id) void Ctrl::sProcessMSG(MSG& msg) { if (msg.message == WM_HOTKEY) { - if(msg.wParam >= 0 && (int)msg.wParam < Ctrl::hotkey.GetCount()) + if((int)msg.wParam >= 0 && (int)msg.wParam < Ctrl::hotkey.GetCount()) Ctrl::hotkey[(int)msg.wParam](); return; }