diff options
Diffstat (limited to 'plugins/Watrack_MPD/src/options.cpp')
-rwxr-xr-x | plugins/Watrack_MPD/src/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Watrack_MPD/src/options.cpp b/plugins/Watrack_MPD/src/options.cpp index 5cc11880e4..2e40d2f098 100755 --- a/plugins/Watrack_MPD/src/options.cpp +++ b/plugins/Watrack_MPD/src/options.cpp @@ -50,10 +50,10 @@ static INT_PTR CALLBACK DlgProcWaMpdOpts(HWND hwndDlg, UINT msg, WPARAM wParam, TCHAR 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, SIZEOF(szText)); + GetDlgItemText(hwndDlg, IDC_SERVER, szText, _countof(szText)); db_set_ts(NULL, szModuleName, "Server", szText); mir_tstrcpy(gbHost, szText); - GetDlgItemText(hwndDlg, IDC_PASSWORD, szText, SIZEOF(szText)); + GetDlgItemText(hwndDlg, IDC_PASSWORD, szText, _countof(szText)); db_set_ts(NULL, szModuleName, "Password", szText); mir_tstrcpy(gbPassword, szText); return TRUE; |