summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-28 15:23:46 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-28 15:23:46 +0300
commit2cb551c95b03612f9dd680504d30bc1d18ea31ac (patch)
treee24d0a6a9b799a75aefdee58b5b3d2369be8d461 /src/mir_core
parent457d7cc7cd21de3000e0a58e4a2e4c278f6032b8 (diff)
code cleaning / warning fixes
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CCtrlBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/CCtrlBase.cpp b/src/mir_core/src/CCtrlBase.cpp
index 609804e390..4761bd07d5 100644
--- a/src/mir_core/src/CCtrlBase.cpp
+++ b/src/mir_core/src/CCtrlBase.cpp
@@ -151,14 +151,14 @@ char* CCtrlBase::GetTextU()
wchar_t* CCtrlBase::GetText(wchar_t *buf, size_t size)
{
- GetWindowTextW(m_hwnd, buf, size);
+ GetWindowTextW(m_hwnd, buf, (int)size);
buf[size - 1] = 0;
return buf;
}
char* CCtrlBase::GetTextA(char *buf, size_t size)
{
- GetWindowTextA(m_hwnd, buf, size);
+ GetWindowTextA(m_hwnd, buf, (int)size);
buf[size - 1] = 0;
return buf;
}