diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /plugins/TranslitSwitcher | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/TranslitSwitcher')
-rw-r--r-- | plugins/TranslitSwitcher/src/Layoutproc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 33fe4c32a2..04a6c2f934 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -407,7 +407,7 @@ void SwitchLayout(bool lastword) for (size_t i = 0; i < slen; i++) {
SHORT vks;
- BYTE keys[256] = { 0 };
+ uint8_t keys[256] = { 0 };
vks = VkKeyScanEx(buf[i], hkl);
@@ -435,7 +435,7 @@ void SwitchLayout(bool lastword) else if (mir_wstrcmpi(szClassName, L"RichEdit50W") == 0) {
size_t i, start = 0, end = 0;
SHORT vks;
- BYTE keys[256] = { 0 };
+ uint8_t keys[256] = { 0 };
HKL hkl = GetKeyboardLayout(dwThreadID);
DWORD dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
@@ -652,7 +652,7 @@ int OnButtonPressed(WPARAM, LPARAM lParam) HWND hEdit = GetDlgItem(cbcd->hwndFrom, IDC_SRMM_MESSAGE);
- BYTE byKeybState[256];
+ uint8_t byKeybState[256];
GetKeyboardState(byKeybState);
byKeybState[VK_CONTROL] = 128;
SetKeyboardState(byKeybState);
@@ -683,7 +683,7 @@ int OnButtonPressed(WPARAM, LPARAM lParam) for (int i = 0; i < (int)slen; i++) {
wchar_t tchr;
- BYTE keys[256] = { 0 };
+ uint8_t keys[256] = { 0 };
SHORT vks = VkKeyScanEx(sel[i], hkl);
keys[VK_SHIFT] = (HIBYTE(vks) & 1) ? 0xFF : 0x00; // shift
|