diff options
Diffstat (limited to 'plugins/StopSpamPlus/src/utils.cpp')
| -rw-r--r-- | plugins/StopSpamPlus/src/utils.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/StopSpamPlus/src/utils.cpp b/plugins/StopSpamPlus/src/utils.cpp index 0b617519da..f5ea232f94 100644 --- a/plugins/StopSpamPlus/src/utils.cpp +++ b/plugins/StopSpamPlus/src/utils.cpp @@ -4,7 +4,7 @@ tstring &GetDlgItemString(HWND hwnd, int id)  {
  	HWND h = GetDlgItem(hwnd, id);
  	int len = GetWindowTextLength(h);
 -	TCHAR * buf = new TCHAR[len + 1];
 +	wchar_t * buf = new wchar_t[len + 1];
  	GetWindowText(h, buf, len + 1);
  	static tstring s;
  	s = buf;
 @@ -48,10 +48,10 @@ tstring variables_parse(tstring const &tstrFormat, MCONTACT hContact){  		memset(&fi, 0, sizeof(fi));
  		fi.cbSize = sizeof(fi);
 -		fi.tszFormat = _tcsdup(tstrFormat.c_str());
 +		fi.tszFormat = wcsdup(tstrFormat.c_str());
  		fi.hContact = hContact;
  		fi.flags |= FIF_TCHAR;
 -		TCHAR *tszParsed = (TCHAR *)CallService(MS_VARS_FORMATSTRING, (WPARAM)&fi, 0);
 +		wchar_t *tszParsed = (wchar_t *)CallService(MS_VARS_FORMATSTRING, (WPARAM)&fi, 0);
  		free(fi.tszFormat);
  		if (tszParsed) {
  			tstrResult = tszParsed;
  | 
