From 6e3e6c8efb7da8e096121af3b1dc67d46aad3c14 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Jan 2008 00:27:41 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2