diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-25 15:46:46 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-25 15:46:46 +0000 |
commit | 2113b6675af6f78916ea050a17cfe9370d29a134 (patch) | |
tree | b8d0b639c534feede13cf2c0d621bc574f631448 /plugins/NewEventNotify/utils.c | |
parent | a716d39a60b0197cc7944e713b3ecd3ea055dfef (diff) |
NewEventNotify moved to Unicode(patch from person), langpack_english files updated.
git-svn-id: http://svn.miranda-ng.org/main/trunk@635 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewEventNotify/utils.c')
-rw-r--r-- | plugins/NewEventNotify/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewEventNotify/utils.c b/plugins/NewEventNotify/utils.c index 2e8abb08a3..750bb9b4ff 100644 --- a/plugins/NewEventNotify/utils.c +++ b/plugins/NewEventNotify/utils.c @@ -133,7 +133,7 @@ TCHAR* __fastcall NENTranslateT(const char* src, const WCHAR* unibuf) if (!strlennull(src))
{ // for the case of empty strings
- return "";
+ return _T("");
}
if (g_UnicodeCore)
@@ -369,7 +369,7 @@ int utf8_encode(const char *from, char **to) return -1;
}
- unicode = (wchar_t*)_alloca((wchars + 1) * sizeof(unsigned short));
+ unicode = (wchar_t*)mir_alloc((wchars + 1) * sizeof(unsigned short));
unicode[wchars] = 0;
err = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, from,
@@ -407,7 +407,7 @@ int utf8_decode(const char *from, char **to) WCHAR *wszTemp = NULL;
int inlen = strlennull(from);
- wszTemp = (WCHAR *)_alloca(sizeof(WCHAR) * (inlen + 1));
+ wszTemp = (WCHAR *)mir_alloc(sizeof(WCHAR) * (inlen + 1));
// Convert the UTF-8 string to UCS
if (MultiByteToWideChar(CP_UTF8, 0, from, -1, wszTemp, inlen + 1))
|