From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Authentication.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/NewsAggregator/Src/Authentication.cpp') diff --git a/plugins/NewsAggregator/Src/Authentication.cpp b/plugins/NewsAggregator/Src/Authentication.cpp index c2f23cc1f1..f72bee89fc 100644 --- a/plugins/NewsAggregator/Src/Authentication.cpp +++ b/plugins/NewsAggregator/Src/Authentication.cpp @@ -21,13 +21,13 @@ Boston, MA 02111-1307, USA. void CreateAuthString(char *auth, MCONTACT hContact, HWND hwndDlg) { - TCHAR *tlogin = NULL, *tpass = NULL; + wchar_t *tlogin = NULL, *tpass = NULL; if (hContact && db_get_b(hContact, MODULE, "UseAuth", 0)) { tlogin = db_get_tsa(hContact, MODULE, "Login"); tpass = db_get_tsa(hContact, MODULE, "Password"); } else if (hwndDlg && IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)) { - TCHAR buf[MAX_PATH] = {0}; + wchar_t buf[MAX_PATH] = {0}; GetDlgItemText(hwndDlg, IDC_LOGIN, buf, _countof(buf)); tlogin = mir_tstrdup(buf); GetDlgItemText(hwndDlg, IDC_PASSWORD, buf, _countof(buf)); @@ -55,7 +55,7 @@ INT_PTR CALLBACK AuthenticationProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)&SelItem); if (SelItem.hwndList) { - TCHAR str[MAX_PATH]; + wchar_t str[MAX_PATH]; if (GetDlgItemText(SelItem.hwndList, IDC_FEEDTITLE, str, _countof(str))) SetDlgItemText(hwndDlg, IDC_FEEDNAME, str); else { @@ -64,13 +64,13 @@ INT_PTR CALLBACK AuthenticationProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA } } else if (SelItem.hContact) { - TCHAR *ptszNick = db_get_tsa(SelItem.hContact, MODULE, "Nick"); + wchar_t *ptszNick = db_get_tsa(SelItem.hContact, MODULE, "Nick"); if (ptszNick) { SetDlgItemText(hwndDlg, IDC_FEEDNAME, ptszNick); mir_free(ptszNick); } else { - TCHAR *ptszURL = db_get_tsa(SelItem.hContact, MODULE, "URL"); + wchar_t *ptszURL = db_get_tsa(SelItem.hContact, MODULE, "URL"); if (ptszURL) { SetDlgItemText(hwndDlg, IDC_FEEDNAME, ptszURL); mir_free(ptszURL); @@ -85,7 +85,7 @@ INT_PTR CALLBACK AuthenticationProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA case IDOK: { ItemInfo &SelItem = *(ItemInfo*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA); - TCHAR username[MAX_PATH]; + wchar_t username[MAX_PATH]; char passw[MAX_PATH]; if (!GetDlgItemText(hwndDlg, IDC_FEEDUSERNAME, username, _countof(username))) { MessageBox(hwndDlg, TranslateT("Enter your username"), TranslateT("Error"), MB_OK | MB_ICONERROR); -- cgit v1.2.3