diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-03-05 20:54:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-03-05 20:54:42 +0000 |
commit | d41a10aafa58e0ae70efa685bdcbf80d68264870 (patch) | |
tree | 3868d5fa2b5b91c20cddae7d33ae16094a0ff8ee /protocols/Tox/src/tox_options.cpp | |
parent | 57b353f2279140a56a31b4ce7d03c8eb863bead5 (diff) |
Tox:
- translation fixes
- resource cosmetics
git-svn-id: http://svn.miranda-ng.org/main/trunk@12341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r-- | protocols/Tox/src/tox_options.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 764d3d9469..f282c0cbd0 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -74,15 +74,9 @@ INT_PTR CToxProto::MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l case IDC_IMPORT_PROFILE:
{
- TCHAR *pFilter, filter[MAX_PATH] = { 0 };
- pFilter = &filter[0];
- mir_tstrcat(pFilter, TranslateT("Tox profile(*.tox)"));
- pFilter += mir_tstrlen(pFilter) + 1;
- mir_tstrcat(pFilter, _T("*.tox"));
- pFilter += mir_tstrlen(pFilter) + 1;
- mir_tstrcat(pFilter, TranslateT("All files(*.*)"));
- pFilter += mir_tstrlen(pFilter) + 1;
- mir_tstrcat(pFilter, _T("*.*"));
+ TCHAR filter[MAX_PATH];
+ mir_sntprintf(filter, SIZEOF(filter), _T("%s(*.tox)%c*.tox%c%s(*.*)%c*.*%c%c"),
+ TranslateT("Tox profile"), 0, 0, TranslateT("All files"), 0, 0, 0);
TCHAR profilePath[MAX_PATH] = { 0 };
@@ -241,7 +235,7 @@ INT_PTR CALLBACK EditNodeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l itemInfo = (ItemInfo*)lParam;
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
- SendDlgItemMessage(hwndDlg, IDC_IPV4, EM_SETLIMITTEXT, 15, 0);
+ SendDlgItemMessage(hwndDlg, IDC_IPV4, EM_SETLIMITTEXT, MAX_PATH, 0);
SendDlgItemMessage(hwndDlg, IDC_IPV6, EM_SETLIMITTEXT, 39, 0);
SendDlgItemMessage(hwndDlg, IDC_PORT, EM_SETLIMITTEXT, 5, 0);
SendDlgItemMessage(hwndDlg, IDC_PKEY, EM_SETLIMITTEXT, TOX_PUBLIC_KEY_SIZE * 2, 0);
|