diff options
Diffstat (limited to 'metacontacts/meta_menu.c')
-rw-r--r-- | metacontacts/meta_menu.c | 9 |
1 files changed, 6 insertions, 3 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) }
+
|