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; }