summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}