diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-04 19:04:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-04 19:04:55 +0300 |
commit | b6c0516b0535f9f4dc14cd4c6ea506762d56cf3e (patch) | |
tree | 960dfb2c07ccef5439b6e89ca09a3588d1170bb0 /src/core | |
parent | f49a3ebbe5c0f420ce328b5db3c1723cd0af4ed0 (diff) |
small fixes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 28b1199d7d..0209a74695 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -617,13 +617,12 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l NotifyLocalWinEvent(dat->hContact, hwndDlg, MSG_WINDOW_EVT_OPENING);
if (newData->szInitialText) {
- int len;
-
if (newData->isWchar)
SetDlgItemText(hwndDlg, IDC_MESSAGE, (wchar_t*)newData->szInitialText);
else
SetDlgItemTextA(hwndDlg, IDC_MESSAGE, newData->szInitialText);
- len = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_MESSAGE));
+
+ int len = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_MESSAGE));
PostMessage(GetDlgItem(hwndDlg, IDC_MESSAGE), EM_SETSEL, len, len);
}
|