From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/TranslitSwitcher/src/Layoutproc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TranslitSwitcher') 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 -- cgit v1.2.3