From ddd1af0fdf37364c9472faedad941b4cc5f1b465 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 11:50:07 +0000 Subject: removed from git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- utils/mir_smileys.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/mir_smileys.cpp b/utils/mir_smileys.cpp index f3d5168a81..0bce208d26 100644 --- a/utils/mir_smileys.cpp +++ b/utils/mir_smileys.cpp @@ -28,6 +28,8 @@ Boston, MA 02111-1307, USA. #include #include +#include + // Prototypes #define TEXT_PIECE_TYPE_TEXT 0 @@ -408,11 +410,11 @@ SortedList * ReplaceSmileys(const wchar_t *text, int text_size, const char *prot SortedList *plText = List_Create(0, 10); const wchar_t *next_text_pos = text; - const wchar_t *last_text_pos = _tcsninc(text, text_size); + const wchar_t *last_text_pos = _wcsninc(text, text_size); for (unsigned int i = 0; i < sp.numSmileys; i++) { - wchar_t* start = _tcsninc(text, spres[i].startChar); - wchar_t* end = _tcsninc(start, spres[i].size); + wchar_t *start = _wcsninc(text, spres[i].startChar); + wchar_t *end = _wcsninc(start, spres[i].size); if (spres[i].hIcon != NULL) { // For defective smileypacks // Add text -- cgit v1.2.3