summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/Watrack_MPD/src/options.cpp
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
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
Diffstat (limited to 'plugins/Watrack_MPD/src/options.cpp')
-rwxr-xr-xplugins/Watrack_MPD/src/options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Watrack_MPD/src/options.cpp b/plugins/Watrack_MPD/src/options.cpp
index 54d0c2d6ce..315c2f4100 100755
--- a/plugins/Watrack_MPD/src/options.cpp
+++ b/plugins/Watrack_MPD/src/options.cpp
@@ -24,7 +24,7 @@ static INT_PTR CALLBACK DlgProcWaMpdOpts(HWND hwndDlg, UINT msg, WPARAM, LPARAM
{
TranslateDialogDefault(hwndDlg);
SetDlgItemInt(hwndDlg, IDC_PORT, db_get_w(NULL, szModuleName, "Port", 6600), FALSE);
- TCHAR *tmp = UniGetContactSettingUtf(NULL, szModuleName, "Server", L"127.0.0.1");
+ wchar_t *tmp = UniGetContactSettingUtf(NULL, szModuleName, "Server", L"127.0.0.1");
SetDlgItemText(hwndDlg, IDC_SERVER, tmp);
mir_free(tmp);
tmp = UniGetContactSettingUtf(NULL, szModuleName, "Password", L"");
@@ -47,7 +47,7 @@ static INT_PTR CALLBACK DlgProcWaMpdOpts(HWND hwndDlg, UINT msg, WPARAM, LPARAM
case PSN_APPLY:
{
- TCHAR szText[256];
+ wchar_t szText[256];
db_set_w(NULL, szModuleName, "Port", (WORD)GetDlgItemInt(hwndDlg, IDC_PORT, NULL, FALSE));
gbPort = (WORD)GetDlgItemInt(hwndDlg, IDC_PORT, NULL, FALSE);
GetDlgItemText(hwndDlg, IDC_SERVER, szText, _countof(szText));
@@ -71,9 +71,9 @@ int WaMpdOptInit(WPARAM wParam,LPARAM)
OPTIONSDIALOGPAGE odp = { 0 };
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_WA_MPD);
- odp.ptszTitle = LPGENT("Winamp Track");
- odp.ptszGroup = LPGENT("Plugins");
- odp.ptszTab = LPGENT("Watrack MPD");
+ odp.pwszTitle = LPGENW("Winamp Track");
+ odp.pwszGroup = LPGENW("Plugins");
+ odp.pwszTab = LPGENW("Watrack MPD");
odp.flags=ODPF_BOLDGROUPS|ODPF_TCHAR;
odp.pfnDlgProc = DlgProcWaMpdOpts;
Options_AddPage(wParam, &odp);