summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 11:50:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 11:50:07 +0000
commitddd1af0fdf37364c9472faedad941b4cc5f1b465 (patch)
treed4eb46f481a47b6e16e40b39860e830e40f9dbcf /utils
parentcc3be4384048697fe9b7716c11b7bd726b9ca650 (diff)
<tchar.h> removed from <m_system.h>
git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'utils')
-rw-r--r--utils/mir_smileys.cpp8
1 files changed, 5 insertions, 3 deletions
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 <commctrl.h>
#include <m_skin_eng.h>
+#include <tchar.h>
+
// 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