From 0ff28f7c5ffaa46ed5b21bee965e66bb9108dfe2 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 04:44:35 +0000 Subject: GetWindowText(GetDlgItem(...)) -> GetDlgItemText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/langpack/lpopts.cpp | 2 +- src/modules/netlib/netliblog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/langpack/lpopts.cpp b/src/modules/langpack/lpopts.cpp index cb1a8d5a0b..07cb4784b0 100644 --- a/src/modules/langpack/lpopts.cpp +++ b/src/modules/langpack/lpopts.cpp @@ -125,7 +125,7 @@ INT_PTR CALLBACK DlgLangpackOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP { char buf[512]; mir_strcpy(buf, "mailto:"); - if (GetWindowTextA(GetDlgItem(hwndDlg, LOWORD(wParam)), &buf[7], SIZEOF(buf)-7)) + if (GetDlgItemTextA(hwndDlg, LOWORD(wParam), &buf[7], SIZEOF(buf) - 7)) CallService(MS_UTILS_OPENURL, 0, (LPARAM)buf); } break; diff --git a/src/modules/netlib/netliblog.cpp b/src/modules/netlib/netliblog.cpp index 43f14d4ac9..844db8b3ad 100644 --- a/src/modules/netlib/netliblog.cpp +++ b/src/modules/netlib/netliblog.cpp @@ -209,11 +209,11 @@ static INT_PTR CALLBACK LogOptionsDlgProc(HWND hwndDlg, UINT message, WPARAM wPa db_set_ts(NULL, "Netlib", "RunAtStart", str); db_set_b(NULL, "Netlib", "ShowLogOptsAtStart", (BYTE)IsDlgButtonChecked(hwndDlg, IDC_SHOWTHISDLGATSTART)); - GetWindowText(GetDlgItem(hwndDlg, IDC_FILENAME), str, SIZEOF(str)); + GetDlgItemText(hwndDlg, IDC_FILENAME, str, SIZEOF(str)); logOptions.tszUserFile = rtrimt(str); db_set_ts(NULL, "Netlib", "File", str); - GetWindowText(GetDlgItem(hwndDlg, IDC_PATH), str, SIZEOF(str)); + GetDlgItemText(hwndDlg, IDC_PATH, str, SIZEOF(str)); logOptions.tszFile = rtrimt(str); db_set_b(NULL, "Netlib", "DumpRecv", logOptions.dumpRecv = IsDlgButtonChecked(hwndDlg, IDC_DUMPRECV)); -- cgit v1.2.3