[CPP][Analyzers]Turn on warning 4244 (#22019)

* Turn on warning 4244

fix one occurrence of 4100

* changes from comments

* toupper on wchar
This commit is contained in:
sosssego
2022-11-17 16:24:56 +00:00
committed by GitHub
parent 8fb93dc6ee
commit 195c265a36
9 changed files with 11 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ bool HotkeyManager::FilterKeyboardProc(KeyboardEvent ^ ev)
pressedKeys->Ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000;
pressedKeys->Alt = GetAsyncKeyState(VK_MENU) & 0x8000;
pressedKeys->Shift = GetAsyncKeyState(VK_SHIFT) & 0x8000;
pressedKeys->Key = ev->key;
pressedKeys->Key = static_cast<unsigned char>(ev->key);
// Convert to hotkey handle
auto pressedKeysHandle = GetHotkeyHandle(pressedKeys);