From 71a22e552202aa30284f24f478be65a1e47f61c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Mar 2013 13:51:13 +0000 Subject: chinese in StartyoStatus options git-svn-id: http://svn.miranda-ng.org/main/trunk@3921 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/StartupStatus/options.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins') 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; -- cgit v1.2.3