From 6d99499879c434f212f4c02e751f730eca610983 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 24 Jun 2012 12:33:43 +0000 Subject: Chat: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Chat/options.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'plugins/Chat/options.cpp') diff --git a/plugins/Chat/options.cpp b/plugins/Chat/options.cpp index c80b0c1871..77989d4b39 100644 --- a/plugins/Chat/options.cpp +++ b/plugins/Chat/options.cpp @@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -extern HANDLE g_hInst; extern HBRUSH hEditBkgBrush; extern HBRUSH hListBkgBrush; extern HBRUSH hListSelectedBkgBrush; @@ -755,7 +754,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_HIGHLIGHTWORDS)); if ( iLen > 0 ) { - TCHAR *ptszText = mir_alloc((iLen+2) * sizeof(TCHAR)); + TCHAR *ptszText = (TCHAR *)mir_alloc((iLen+2) * sizeof(TCHAR)); TCHAR *p2 = NULL; if(ptszText) { @@ -773,7 +772,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_LOGDIRECTORY)); if ( iLen > 0 ) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_LOGDIRECTORY, pszText,iLen + 1); DBWriteContactSettingTString(NULL, "Chat", "LogDirectory", pszText); } @@ -783,7 +782,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_LOGTIMESTAMP)); if ( iLen > 0 ) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_LOGTIMESTAMP, pszText, iLen+1); DBWriteContactSettingTString(NULL, "Chat", "LogTimestamp", pszText); } @@ -791,7 +790,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_TIMESTAMP)); if ( iLen > 0 ) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_TIMESTAMP, pszText, iLen+1); DBWriteContactSettingTString(NULL, "Chat", "HeaderTime", pszText); } @@ -799,7 +798,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_INSTAMP)); if ( iLen > 0 ) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_INSTAMP, pszText,iLen+1); DBWriteContactSettingTString(NULL, "Chat", "HeaderIncoming", pszText); } @@ -807,7 +806,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_OUTSTAMP)); if ( iLen > 0 ) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_OUTSTAMP, pszText,iLen+1); DBWriteContactSettingTString(NULL, "Chat", "HeaderOutgoing", pszText); } @@ -828,7 +827,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_GROUP)); if (iLen > 0) { - pszText = mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); + pszText = (TCHAR *)mir_realloc(pszText, (iLen + 1) * sizeof(TCHAR)); GetDlgItemText(hwndDlg, IDC_GROUP, pszText, iLen+1); DBWriteContactSettingTString(NULL, "Chat", "AddToGroup", pszText); } -- cgit v1.2.3