diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 15:13:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 15:13:30 +0300 |
commit | d7e53c4d5a748d5ef8c934e90dc59ff23c667420 (patch) | |
tree | 2b0c16de953e182321a0314b6ce3b909f428731f /plugins/QuickReplies/src | |
parent | 129687d805025b4e292174ffb3d224a55baf24d2 (diff) |
WCHAR -> wchar_t
Diffstat (limited to 'plugins/QuickReplies/src')
-rw-r--r-- | plugins/QuickReplies/src/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/QuickReplies/src/options.cpp b/plugins/QuickReplies/src/options.cpp index f64a5e0391..e3c1df2cad 100644 --- a/plugins/QuickReplies/src/options.cpp +++ b/plugins/QuickReplies/src/options.cpp @@ -35,13 +35,13 @@ static LRESULT CALLBACK MessageEditSubclassProc(HWND hwnd, UINT msg, WPARAM wPar if (wParam == 127 && GetKeyState(VK_CONTROL) & 0x8000) { // ctrl-backspace
DWORD start, end;
- WCHAR text[1024];
+ wchar_t text[1024];
SendMessage(hwnd, EM_GETSEL, (WPARAM)&end, 0);
SendMessage(hwnd, WM_KEYDOWN, VK_LEFT, 0);
SendMessage(hwnd, EM_GETSEL, (WPARAM)&start, 0);
GetWindowText(hwnd, text, _countof(text));
- memmove(text + start, text + end, sizeof(WCHAR)*(mir_wstrlen(text) + 1 - end));
+ memmove(text + start, text + end, sizeof(wchar_t)*(mir_wstrlen(text) + 1 - end));
SetWindowText(hwnd, text);
SendMessage(hwnd, EM_SETSEL, start, start);
SendMessage(GetParent(hwnd), WM_COMMAND, MAKEWPARAM(GetDlgCtrlID(hwnd), EN_CHANGE), (LPARAM)hwnd);
|