summaryrefslogtreecommitdiff
path: root/protocols/CurrencyRates/src/CurrencyRateChart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/CurrencyRates/src/CurrencyRateChart.cpp')
-rw-r--r--protocols/CurrencyRates/src/CurrencyRateChart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/CurrencyRates/src/CurrencyRateChart.cpp b/protocols/CurrencyRates/src/CurrencyRateChart.cpp
index a3208811a4..315a14144d 100644
--- a/protocols/CurrencyRates/src/CurrencyRateChart.cpp
+++ b/protocols/CurrencyRates/src/CurrencyRateChart.cpp
@@ -66,11 +66,11 @@ INT_PTR CurrencyRatesMenu_Chart(WPARAM wp, LPARAM /*lp*/)
if(auto hWnd = ::FindWindow(nullptr,_T("Miranda CurrencyRates Chart")))
{
COPYDATASTRUCT copydata_struct;
- copydata_struct.cbData = static_cast<DWORD>(sLogFileName.size()*sizeof(TCHAR));
+ copydata_struct.cbData = static_cast<DWORD>(sLogFileName.GetLength() * sizeof(TCHAR));
copydata_struct.lpData = const_cast<void*>(static_cast<const void*>(sLogFileName.c_str()));
copydata_struct.dwData = 0x1945;
- SendMessage(hWnd,WM_COPYDATA,0,reinterpret_cast<LPARAM>(&copydata_struct));
+ SendMessage(hWnd,WM_COPYDATA,0,LPARAM(&copydata_struct));
}
else
{