diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-26 22:24:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-26 22:24:58 +0000 |
commit | a7ecea148c70da66f744a0036f985bc97804d8b4 (patch) | |
tree | 007e11deee4595280f1941a178a4dfe9a79942f7 /protocols/Twitter/src/proto.cpp | |
parent | f0ea2e2a1708b66b4b2a7db825a0987306a5fc5d (diff) |
unified project for Twitter
git-svn-id: http://svn.miranda-ng.org/main/trunk@13181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/proto.cpp')
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index b7e32117dc..820c67d1e2 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -274,8 +274,7 @@ int TwitterProto::OnBuildStatusMenu(WPARAM, LPARAM) mi.hParentMenu = hRoot;
mi.flags = CMIF_ROOTHANDLE | CMIF_TCHAR;
mi.position = 1001;
-
- HANDLE m_hMenuRoot = Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi);
// TODO: Disable this menu item when offline
// "Send Tweet..."
@@ -284,7 +283,7 @@ int TwitterProto::OnBuildStatusMenu(WPARAM, LPARAM) mi.ptszName = LPGENT("Send Tweet...");
mi.popupPosition = 200001;
mi.icolibItem = GetIconHandle("tweet");
- HANDLE m_hMenuBookmarks = Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi);
return 0;
}
@@ -391,7 +390,7 @@ void TwitterProto::ShowPopup(const wchar_t *text, int Error) {
POPUPDATAT popup = {};
mir_sntprintf(popup.lptzContactName, SIZEOF(popup.lptzContactName), TranslateT("%s Protocol"), m_tszUserName);
- wcs_to_tcs(CP_UTF8, text, popup.lptzText, SIZEOF(popup.lptzText));
+ wcsncpy_s(popup.lptzText, text, _TRUNCATE);
if (Error) {
popup.iSeconds = -1;
|