summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-10 21:33:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-10 21:33:08 +0300
commita5f518e4cbfd3b47c62d2ef5b524ae1252af9e35 (patch)
tree10952d41840a847415f671f5f3bbdf01a877e9d1 /src/mir_core
parente9167fdb38669870baf1a5f4255f0b0a043fa267 (diff)
surprise... IDCANCEL == 2, while we need to return zero
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CDlgBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp
index 71af58e913..73d2fced0a 100644
--- a/src/mir_core/src/CDlgBase.cpp
+++ b/src/mir_core/src/CDlgBase.cpp
@@ -352,7 +352,7 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
if (OnClose()) {
m_bExiting = true;
if (m_isModal)
- EndModal(m_bSucceeded ? IDOK : IDCANCEL);
+ EndModal(m_bSucceeded ? IDOK : FALSE);
else
DestroyWindow(m_hwnd);
}