diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 19:20:06 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 19:20:06 +0000 |
commit | 46eff0941450114f9dda873037d6744263dc9ad0 (patch) | |
tree | 2582c1c5f9dabc73c98b598b18d3874b2105c8ad /protocols | |
parent | 58973a21a30bf95427fd43c456e41e35c386218c (diff) |
small portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/JabberG/jabber_proto.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/JabberG/jabber_proto.cpp b/protocols/JabberG/jabber_proto.cpp index 7d9ef3f14a..350c9d28a8 100644 --- a/protocols/JabberG/jabber_proto.cpp +++ b/protocols/JabberG/jabber_proto.cpp @@ -1212,11 +1212,9 @@ int __cdecl CJabberProto::SendMsg( HANDLE hContact, int flags, const char* pszSr else isEncrypted = 0;
if ( flags & PREF_UTF ) {
- #if defined( _UNICODE )
+
mir_utf8decode( NEWSTR_ALLOCA( pszSrc ), &msg );
- #else
- msg = mir_strdup( mir_utf8decode( NEWSTR_ALLOCA( pszSrc ), 0 ));
- #endif
+
}
else if ( flags & PREF_UNICODE )
msg = mir_u2t(( wchar_t* )&pszSrc[ strlen( pszSrc )+1 ] );
|