diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-15 15:35:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-15 15:35:54 +0300 |
commit | 2a8ecef339ad41f43d7461b11897fe0a9933167c (patch) | |
tree | d92e79c6db93eabb9f3c933cfcb30229d3d06e29 /plugins | |
parent | 2e35c505b2f25b479e2017d3107cd2db56c74e5a (diff) |
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/AVS/src/services.cpp | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgother.cpp | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp index 2ef34d1901..198135ca3d 100644 --- a/plugins/AVS/src/services.cpp +++ b/plugins/AVS/src/services.cpp @@ -678,10 +678,10 @@ INT_PTR SetMyAvatar(WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK DlgProcAvatarOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-static INT_PTR ContactOptions(WPARAM wParam, LPARAM)
+static INT_PTR ContactOptions(WPARAM wParam, LPARAM lParam)
{
if (wParam)
- CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_AVATAROPTIONS), nullptr, DlgProcAvatarOptions, (LPARAM)wParam);
+ CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_AVATAROPTIONS), (HWND)lParam, DlgProcAvatarOptions, wParam);
return 0;
}
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index b47eb8bf92..d9edce60ae 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1515,16 +1515,14 @@ int CMsgDialog::MsgWindowMenuHandler(int selection, int menuId) break; case ID_PICMENU_SETTINGS: - if (menuId == MENU_PANELPICMENU) - CallService(MS_AV_CONTACTOPTIONS, m_hContact, 0); - else if (menuId == MENU_PICMENU) { + if (menuId == MENU_PICMENU) { if (m_pPanel.isActive()) { if (ServiceExists(MS_AV_SETMYAVATARW) && CallService(MS_AV_CANSETMYAVATAR, (WPARAM)(m_cache->getActiveProto()), 0)) CallService(MS_AV_SETMYAVATARW, (WPARAM)(m_cache->getActiveProto()), 0); + return TRUE; } - else - CallService(MS_AV_CONTACTOPTIONS, m_hContact, 0); } + CallService(MS_AV_CONTACTOPTIONS, m_hContact, (LPARAM)m_hwnd); return 1; } } |