summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-17 19:22:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-17 19:22:18 +0300
commitaff14216986b22c267e861810667d0547a81a952 (patch)
treeeb905a4d49aa9289e396bf06d1035d1d313ca684
parent5c8d421da5da31d641a1a45278b24584593b6608 (diff)
CurrencyRates to handle only its own menu items
-rw-r--r--protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp b/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp
index 33428830fe..4fddbf8bf1 100644
--- a/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp
+++ b/protocols/CurrencyRates/src/CurrencyRateInfoDlg.cpp
@@ -117,12 +117,11 @@ struct CurrencyRateInfoDlg2 : public CurrencyRateInfoDlg
}
};
-int CurrencyRates_OnContactDoubleClick(WPARAM wp, LPARAM/* lp*/)
+int CurrencyRates_OnContactDoubleClick(WPARAM hContact, LPARAM/* lp*/)
{
- if (!g_pCurrentProvider)
+ if (!Proto_IsProtoOnContact(hContact, MODULENAME))
return 0;
- MCONTACT hContact = MCONTACT(wp);
MWindowList hWL = CModuleInfo::GetWindowList(WINDOW_PREFIX_INFO, true);
assert(hWL);
HWND hWnd = WindowList_Find(hWL, hContact);