summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-08 13:51:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-08 13:51:13 +0000
commit71a22e552202aa30284f24f478be65a1e47f61c0 (patch)
tree3ab443b6eb52d94d6755df2eac62d949c4dd37b0 /plugins/StatusPlugins
parent29caf2ccc31bc009d25b577cfc1cfbd82163aa3b (diff)
chinese in StartyoStatus options
git-svn-id: http://svn.miranda-ng.org/main/trunk@3921 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/StartupStatus/options.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp
index c6cecb3d17..044913f69e 100644
--- a/plugins/StatusPlugins/StartupStatus/options.cpp
+++ b/plugins/StatusPlugins/StartupStatus/options.cpp
@@ -755,7 +755,6 @@ static INT_PTR CALLBACK StatusProfilesOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wP
if (IsDlgButtonChecked(hwndDlg, IDC_CUSTOMMSG)) {
len = SendDlgItemMessage(hwndDlg, IDC_STATUSMSG, WM_GETTEXTLENGTH, 0, 0);
ps->szMsg = (TCHAR*)calloc(sizeof(TCHAR), len+1);
- memset(ps->szMsg, '\0', len+1);
SendDlgItemMessage(hwndDlg, IDC_STATUSMSG, WM_GETTEXT, (WPARAM)len+1, (LPARAM)ps->szMsg);
}
SendMessage(hwndDlg, UM_SETSTATUSMSG, 0, 0);
@@ -775,8 +774,7 @@ static INT_PTR CALLBACK StatusProfilesOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wP
}
int len = SendDlgItemMessageA(hwndDlg, IDC_STATUSMSG, WM_GETTEXTLENGTH, 0, 0);
ps->szMsg = (TCHAR*)calloc(sizeof(TCHAR), len+1);
- memset(ps->szMsg, '\0', len+1);
- SendDlgItemMessageA(hwndDlg, IDC_STATUSMSG, WM_GETTEXT, (WPARAM)len+1, (LPARAM)ps->szMsg);
+ SendDlgItemMessage(hwndDlg, IDC_STATUSMSG, WM_GETTEXT, (WPARAM)len+1, (LPARAM)ps->szMsg);
}
break;