From: Vadim Zeitlin Date: Sun, 6 Jan 2008 00:27:41 +0000 (+0000) Subject: fix comparison of BYTE variable with -1 after last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6e3e6c8efb7da8e096121af3b1dc67d46aad3c14?ds=inline fix comparison of BYTE variable with -1 after last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 2e53422038..418d1eb848 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -6101,7 +6101,7 @@ WXWORD wxCharCodeWXToMSW(int wxk, bool *isVirtual) default: // check to see if its one of the OEM key codes. BYTE vks = LOBYTE(VkKeyScan(wxk)); - if ( vks != -1 ) + if ( vks != 0xff ) { vk = vks; }