diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/TranslitSwitcher/src | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/TranslitSwitcher/src')
-rw-r--r-- | plugins/TranslitSwitcher/src/Layoutproc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 04a6c2f934..5ac0ba1115 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -45,7 +45,7 @@ static DWORD CALLBACK StreamOutCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG return 0;
}
-wchar_t* Message_GetFromStream(HWND hwndRtf, DWORD dwPassedFlags)
+wchar_t* Message_GetFromStream(HWND hwndRtf, uint32_t dwPassedFlags)
{
if (hwndRtf == nullptr)
return nullptr;
@@ -415,7 +415,7 @@ void SwitchLayout(bool lastword) keys[VK_CONTROL] = (HIBYTE(vks) & 2) ? 0xFF : 0x00; // ctrl
keys[VK_MENU] = (HIBYTE(vks) & 4) ? 0xFF : 0x00; // alt
- if (!isItSmiley(DWORD(i))) {
+ if (!isItSmiley(uint32_t(i))) {
wchar_t tchr;
if (ToUnicodeEx(LOBYTE(vks), 0, keys, &tchr, 1, 0, GetKeyboardLayout(dwThreadID)) == 1)
buf[i] = tchr;
@@ -438,7 +438,7 @@ void SwitchLayout(bool lastword) uint8_t keys[256] = { 0 };
HKL hkl = GetKeyboardLayout(dwThreadID);
- DWORD dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
+ uint32_t dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
SendMessage(hwnd2, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
bool somethingIsSelected = (dwStart != dwEnd);
if (somethingIsSelected)
@@ -516,7 +516,7 @@ void TranslitLayout(bool lastword) if (mir_wstrcmpi(szClassName, L"RichEdit50W") != 0)
return;
- DWORD dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
+ uint32_t dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
SendMessage(hwnd2, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
bool somethingIsSelected = (dwStart != dwEnd);
if (somethingIsSelected)
@@ -584,7 +584,7 @@ void InvertCase(bool lastword) if (mir_wstrcmpi(szClassName, L"RichEdit50W") != 0)
return;
- DWORD dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
+ uint32_t dwStart, dwEnd, dwFlags = SF_TEXT | SF_UNICODE;
SendMessage(hwnd2, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
bool somethingIsSelected = (dwStart != dwEnd);
if (somethingIsSelected)
|