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
This commit is contained in:
cxl 2009-09-25 09:21:32 +00:00
parent f7f80b62eb
commit 5c61fdc7ed

View file

@ -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