summaryrefslogtreecommitdiff
path: root/plugins/Scriver/chat/manager.c
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-14 11:13:37 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-14 11:13:37 +0000
commit721aea0764451e985d575236205808bbef298244 (patch)
tree3a1c566c364e5fc2fff86b87d494497e7de6f93d /plugins/Scriver/chat/manager.c
parent1784cdf49b8196219563795cf3b11b7c4c2a6746 (diff)
one more "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/chat/manager.c')
-rw-r--r--plugins/Scriver/chat/manager.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/Scriver/chat/manager.c b/plugins/Scriver/chat/manager.c
index 62542fd14a..74595f3bc0 100644
--- a/plugins/Scriver/chat/manager.c
+++ b/plugins/Scriver/chat/manager.c
@@ -136,11 +136,9 @@ int SM_RemoveSession( const TCHAR* pszID, const char* pszModule)
mir_free( pTemp->ptszStatusbarText );
mir_free( pTemp->ptszTopic );
mir_free( pTemp->pszHeader );
- #if defined( _UNICODE )
- mir_free( pTemp->pszID );
- mir_free( pTemp->pszName );
- #endif
-
+ mir_free( pTemp->pszID );
+ mir_free( pTemp->pszName );
+
// delete commands
tcmdlist_free(pTemp->windowData.cmdList);
mir_free(pTemp);
@@ -771,11 +769,8 @@ char* SM_GetUsers(SESSION_INFO* si)
if ( pLen + nameLen + 2 > alloced )
p = mir_realloc( p, alloced += 4096 );
- #if !defined( _UNICODE )
- lstrcpy( p + pLen, utemp->pszUID );
- #else
- WideCharToMultiByte( CP_ACP, 0, utemp->pszUID, -1, p + pLen, nameLen+1, 0, 0 );
- #endif
+ WideCharToMultiByte( CP_ACP, 0, utemp->pszUID, -1, p + pLen, nameLen+1, 0, 0 );
+
lstrcpyA( p + pLen + nameLen, " " );
utemp = utemp->next;
}