diff options
-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
|