From 54928843e7fcd6d42be6d8d5d1127830fda97eca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 Mar 2017 14:13:09 +0300 Subject: fix for a return type --- src/mir_core/src/mir_core.def | 2 +- src/mir_core/src/mir_core64.def | 2 +- src/mir_core/src/ui_utils.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mir_core') diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 68cf90c200..e768d86645 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -578,7 +578,7 @@ mir_wstrcmpi @280 ?EditLabel@CCtrlTreeView@@QAEPAUHWND__@@PAU_TREEITEM@@@Z @743 NONAME ?Enable@CCtrlBase@@QAEX_N@Z @744 NONAME ?EnableGroupView@CCtrlListView@@QAEHH@Z @745 NONAME -?Enabled@CCtrlBase@@QBEHXZ @746 NONAME +?Enabled@CCtrlBase@@QBE_NXZ @746 NONAME ?EndEditLabel@CCtrlClc@@QAEX_N@Z @747 NONAME ?EndEditLabelNow@CCtrlTreeView@@QAEXH@Z @748 NONAME ?EnsureVisible@CCtrlClc@@QAEXPAX_N@Z @749 NONAME diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 3c4841edfd..9fa749687d 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -578,7 +578,7 @@ mir_wstrcmpi @280 ?EditLabel@CCtrlTreeView@@QEAAPEAUHWND__@@PEAU_TREEITEM@@@Z @743 NONAME ?Enable@CCtrlBase@@QEAAX_N@Z @744 NONAME ?EnableGroupView@CCtrlListView@@QEAAHH@Z @745 NONAME -?Enabled@CCtrlBase@@QEBAHXZ @746 NONAME +?Enabled@CCtrlBase@@QEBA_NXZ @746 NONAME ?EndEditLabel@CCtrlClc@@QEAAX_N@Z @747 NONAME ?EndEditLabelNow@CCtrlTreeView@@QEAAXH@Z @748 NONAME ?EnsureVisible@CCtrlClc@@QEAAXPEAX_N@Z @749 NONAME diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index c11f67240c..bbfc2c205d 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -2707,9 +2707,9 @@ void CCtrlBase::Enable(bool bIsEnable) ::EnableWindow(m_hwnd, bIsEnable); } -BOOL CCtrlBase::Enabled() const +bool CCtrlBase::Enabled() const { - return (m_hwnd) ? IsWindowEnabled(m_hwnd) : FALSE; + return (m_hwnd) ? IsWindowEnabled(m_hwnd) != 0 : false; } void CCtrlBase::NotifyChange() -- cgit v1.2.3