diff options
Diffstat (limited to 'plugins/WhenWasIt/utils.cpp')
-rw-r--r-- | plugins/WhenWasIt/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/WhenWasIt/utils.cpp b/plugins/WhenWasIt/utils.cpp index 86dfc05c44..6bfbcd326e 100644 --- a/plugins/WhenWasIt/utils.cpp +++ b/plugins/WhenWasIt/utils.cpp @@ -174,9 +174,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);
@@ -221,9 +221,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;
|