summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);