From f719c8b921c7a46b76453476204224d40c682914 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2018 21:32:58 +0300 Subject: int hLangpack/m_hLang removed and replaced with HPLUGIN --- plugins/FTPFileYM/src/ftpfile.cpp | 6 +++--- plugins/FTPFileYM/src/options.cpp | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/FTPFileYM/src') diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 16a76bc66e..01dd4374a7 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -80,7 +80,7 @@ void InitMenuItems() { wchar_t stzName[256]; - CMenuItem mi(g_plugin); + CMenuItem mi(&g_plugin); SET_UID(mi, 0xB7132F5A, 0x65FC, 0x42C5, 0xB4, 0xCB, 0x54, 0xBC, 0xAC, 0x58, 0x34, 0xE9); mi.flags = CMIF_UNICODE; mi.hIcolibItem = iconList[ServerList::FTP_COUNT].hIcolib; @@ -95,7 +95,7 @@ void InitMenuItems() mi.name.w = stzName; mi.flags = CMIF_UNICODE | CMIF_SYSTEM; - CMenuItem mi2(g_plugin); + CMenuItem mi2(&g_plugin); mi2.flags = CMIF_UNICODE | CMIF_SYSTEM; mi2.pszService = MS_FTPFILE_CONTACTMENU; @@ -178,7 +178,7 @@ void InitTabsrmmButton() btn.hIcon = iconList[ServerList::FTP_COUNT].hIcolib; btn.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN; btn.pwszTooltip = TranslateT("FTP File"); - Srmm_AddButton(&btn, g_plugin.m_hLang); + Srmm_AddButton(&btn, &g_plugin); HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed); } diff --git a/plugins/FTPFileYM/src/options.cpp b/plugins/FTPFileYM/src/options.cpp index eff7b5e7bd..cb32cc66c4 100644 --- a/plugins/FTPFileYM/src/options.cpp +++ b/plugins/FTPFileYM/src/options.cpp @@ -246,9 +246,8 @@ INT_PTR CALLBACK Options::DlgProcOptsAdvanced(HWND hwndDlg, UINT msg, WPARAM wPa int Options::InitOptions(WPARAM wParam, LPARAM) { - OPTIONSDIALOGPAGE odp = { 0 }; + OPTIONSDIALOGPAGE odp = {}; odp.position = 100000000; - odp.hInstance = g_plugin.getInst(); odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; odp.szTitle.w = LPGENW("FTP File"); odp.szGroup.w = LPGENW("Services"); -- cgit v1.2.3