summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-06-15 10:06:38 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-06-15 10:06:38 +0000
commita7ba006098072342f492002071de04189626f024 (patch)
tree1460a163f96719542b9f6c5f29e24016329f52ca /plugins/FileAsMessage/src/main.cpp
parentc2493a017f90b78e017c4721a3e4690229257375 (diff)
plugin unicoded
git-svn-id: http://svn.miranda-ng.org/main/trunk@9494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage/src/main.cpp')
-rw-r--r--plugins/FileAsMessage/src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp
index 72165723c6..bea4aead0b 100644
--- a/plugins/FileAsMessage/src/main.cpp
+++ b/plugins/FileAsMessage/src/main.cpp
@@ -20,7 +20,7 @@ HINSTANCE hInst;
int hLangpack;
char *szServiceTitle = SERVICE_TITLE;
-char *szServicePrefix = SERVICE_PREFIX;
+TCHAR *szServicePrefix = SERVICE_PREFIX;
HANDLE hHookDbSettingChange, hHookContactAdded, hHookSkinIconsChanged;
HICON hIcons[5];
@@ -118,8 +118,9 @@ INT_PTR OnRecvMessage(WPARAM wParam, LPARAM lParam)
{
CCSDATA *pccsd = (CCSDATA *)lParam;
PROTORECVEVENT *ppre = ( PROTORECVEVENT * )pccsd->lParam;
+ ppre->flags = PREF_TCHAR;
- if(strncmp(ppre->szMessage, szServicePrefix, strlen(szServicePrefix)))
+ if(_tcsncmp(ppre->tszMessage, szServicePrefix, _tcslen(szServicePrefix)))
return CallService(MS_PROTO_CHAINRECV, wParam, lParam);
HWND hwnd = WindowList_Find(hFileList, pccsd->hContact);
@@ -135,7 +136,7 @@ INT_PTR OnRecvMessage(WPARAM wParam, LPARAM lParam)
return 0;
}
}
- char *msg = strdup(ppre->szMessage + strlen(szServicePrefix));
+ TCHAR *msg = _tcsdup(ppre->tszMessage + _tcslen(szServicePrefix));
PostMessage(hwnd, WM_FE_MESSAGE, (WPARAM)pccsd->hContact, (LPARAM)msg);
return 0;