summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-27 16:02:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-27 16:02:02 +0000
commit42381a63e8d55291b768a06baaac036dc151b052 (patch)
treea4a3f67f441a2c78c61de3e25629d6221b787b06 /plugins/PluginUpdater
parent9effe50a0bf8af8d122570b027fbb8ca184fb527 (diff)
fix for PluginUpdater's options
git-svn-id: http://svn.miranda-ng.org/main/trunk@2521 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/src/Options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp
index 3d24fb72c8..6a47da10c9 100644
--- a/plugins/PluginUpdater/src/Options.cpp
+++ b/plugins/PluginUpdater/src/Options.cpp
@@ -139,9 +139,9 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
opts.bUpdateOnPeriod = IsDlgButtonChecked(hwndDlg, IDC_UPDATEONPERIOD);
- char buffer[3] = {0};
- Edit_GetText(GetDlgItem(hwndDlg, IDC_PERIOD), (LPWSTR)&buffer, 2);
- opts.Period = atoi(buffer);
+ TCHAR buffer[3] = {0};
+ Edit_GetText(GetDlgItem(hwndDlg, IDC_PERIOD), buffer, SIZEOF(buffer));
+ opts.Period = _ttoi(buffer);
opts.bPeriodMeasure = ComboBox_GetCurSel(GetDlgItem(hwndDlg, IDC_PERIODMEASURE));