summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-22 04:56:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-22 04:56:32 +0000
commit400d2e50f52fe113f2130db6062fef4a970a1042 (patch)
treef0d5e62c4573d75ef83542543d687c5c18c499c4 /plugins/SecureIM/src/crypt_lists.cpp
parentd68ef14d25a6b9f3dcec6700e812dc5012aa59ba (diff)
hooking loading/unloading events
git-svn-id: http://svn.miranda-ng.org/main/trunk@3676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_lists.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp
index 2e616a46b7..fc77021775 100644
--- a/plugins/SecureIM/src/crypt_lists.cpp
+++ b/plugins/SecureIM/src/crypt_lists.cpp
@@ -218,11 +218,9 @@ void getContactNameA(HANDLE hContact, LPSTR szName) {
strcpy(szName,(LPCSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,0));
}
-void getContactName(HANDLE hContact, LPSTR szName) {
- if ( bCoreUnicode )
- wcscpy((LPWSTR)szName,(LPWSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)hContact,GSMDF_UNICODE));
- else
- getContactNameA(hContact, szName);
+void getContactName(HANDLE hContact, LPSTR szName)
+{
+ wcscpy((LPWSTR)szName, (LPWSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GSMDF_UNICODE));
}
void getContactUinA(HANDLE hContact, LPSTR szUIN) {
@@ -250,9 +248,10 @@ void getContactUinA(HANDLE hContact, LPSTR szUIN) {
DBFreeVariant(&dbv_uniqueid);
}
-void getContactUin(HANDLE hContact, LPSTR szUIN) {
+void getContactUin(HANDLE hContact, LPSTR szUIN)
+{
getContactUinA(hContact, szUIN);
- if ( bCoreUnicode && *szUIN ) {
+ if (*szUIN) {
LPWSTR tmp = mir_a2u(szUIN);
wcscpy((LPWSTR)szUIN, tmp);
mir_free(tmp);