diff options
Diffstat (limited to 'plugins/Bonsai/utils.cpp')
-rw-r--r-- | plugins/Bonsai/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Bonsai/utils.cpp b/plugins/Bonsai/utils.cpp index 3f30dc44ad..1f62ac32c8 100644 --- a/plugins/Bonsai/utils.cpp +++ b/plugins/Bonsai/utils.cpp @@ -228,9 +228,9 @@ TCHAR *GetContactName(HANDLE hContact, char *szProto) ctInfo.szProto = proto;
}
ctInfo.dwFlag = CNF_DISPLAY;
-#ifdef _UNICODE
+
ctInfo.dwFlag += CNF_UNICODE;
-#endif
+
ctInfo.hContact = hContact;
//_debug_message("retrieving contact name for %d", hContact);
ret = CallService(MS_CONTACT_GETCONTACTINFO, 0, (LPARAM) &ctInfo);
@@ -277,9 +277,9 @@ TCHAR *GetContactID(HANDLE hContact, char *szProto) ctInfo.cbSize = sizeof(ctInfo);
ctInfo.szProto = szProto;
ctInfo.dwFlag = CNF_UNIQUEID;
-#ifdef _UNICODE
+
ctInfo.dwFlag |= CNF_UNICODE;
-#endif
+
ctInfo.hContact = hContact;
ret = CallService(MS_CONTACT_GETCONTACTINFO, 0, (LPARAM) &ctInfo);
TCHAR *buffer;
|