diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-04 17:02:22 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-04 17:02:22 +0000 |
commit | edf8a68513909e44aa1ca46cfe98e9cce18a856b (patch) | |
tree | a4b14e866bae5b7584c9d11403f5b6d5109b8aa0 | |
parent | 60ed886ccef201a29a4f3a40fe582e97329ed8de (diff) |
unicode contact menu patch (thx borkra)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@251 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | metacontacts/meta_menu.c | 9 | ||||
-rw-r--r-- | metacontacts/version.h | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/metacontacts/meta_menu.c b/metacontacts/meta_menu.c index 65c58a1..b2dbb96 100644 --- a/metacontacts/meta_menu.c +++ b/metacontacts/meta_menu.c @@ -467,12 +467,14 @@ int Meta_ModifyMenu(WPARAM wParam, LPARAM lParam) buf[0] = 0;
}
DBFreeVariant(&dbv);
+ mi.pszName = buf;
+ mi.flags = 0;
} else {
- strncpy(buf, (char *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, 0), 512);
+ mi.pszName = CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_UNICODE);
+ mi.flags = CMIF_UNICODE;
}
- mi.flags = CMIM_FLAGS | CMIM_NAME | CMIM_ICON;
- mi.pszName = buf;
+ mi.flags |= CMIM_FLAGS | CMIM_NAME | CMIM_ICON;
//mi.hIcon = LoadSkinnedProtoIcon(proto, status);
iconIndex = (int)CallService(MS_CLIST_GETCONTACTICON, (WPARAM)hContact, 0);
@@ -548,3 +550,4 @@ int Meta_ModifyMenu(WPARAM wParam, LPARAM lParam) }
+
diff --git a/metacontacts/version.h b/metacontacts/version.h index 9366930..81c78ee 100644 --- a/metacontacts/version.h +++ b/metacontacts/version.h @@ -5,7 +5,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 13
#define __RELEASE_NUM 0
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|