From 5c61fdc7edec1c053e2d2bdfb08bf5901475e98e Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 25 Sep 2009 09:21:32 +0000 Subject: [PATCH] CtrlCore: HotKey implementation fixed to workaround MSC7.1 compiler bug (thanks glx117) git-svn-id: svn://ultimatepp.org/upp/trunk@1592 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 1e4846313..322ff5aa0 100644 --- a/uppsrc/CtrlCore/Win32Wnd.cpp +++ b/uppsrc/CtrlCore/Win32Wnd.cpp @@ -710,7 +710,7 @@ void Ctrl::sProcessMSG(MSG& msg) { if (msg.message == WM_HOTKEY) { if(msg.wParam >= 0 && (int)msg.wParam < Ctrl::hotkey.GetCount()) - Ctrl::hotkey[msg.wParam](); + Ctrl::hotkey[(int)msg.wParam](); return; } if(msg.message != WM_SYSKEYDOWN && msg.message != WM_SYSKEYUP