summaryrefslogtreecommitdiff
path: root/plugins/Exchange/src/dlg_handlers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Exchange/src/dlg_handlers.cpp')
-rw-r--r--plugins/Exchange/src/dlg_handlers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Exchange/src/dlg_handlers.cpp b/plugins/Exchange/src/dlg_handlers.cpp
index 52b11dabd9..185d93aeeb 100644
--- a/plugins/Exchange/src/dlg_handlers.cpp
+++ b/plugins/Exchange/src/dlg_handlers.cpp
@@ -42,13 +42,13 @@ INT_PTR CALLBACK DlgProcOptions(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
TCHAR buffer[4096];
GetStringFromDatabase("Username", _T(""), buffer, SIZEOF(buffer));
- SetWindowText(GetDlgItem(hWnd, IDC_USER_EDIT), buffer);
+ SetDlgItemText(hWnd, IDC_USER_EDIT, buffer);
GetStringFromDatabase("Password", _T(""), buffer, SIZEOF(buffer));
- SetWindowText(GetDlgItem(hWnd, IDC_PASSWORD_EDIT), buffer);
+ SetDlgItemText(hWnd, IDC_PASSWORD_EDIT, buffer);
- GetStringFromDatabase("Server", _T(""), buffer, sizeof(buffer));
- SetWindowText(GetDlgItem(hWnd, IDC_SERVER_EDIT), buffer);
+ GetStringFromDatabase("Server", _T(""), buffer, SIZEOF(buffer));
+ SetDlgItemText(hWnd, IDC_SERVER_EDIT, buffer);
SetDlgItemInt(hWnd, IDC_PORT_EDIT, db_get_dw(NULL, ModuleName, "Port", EXCHANGE_PORT), FALSE);