diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-10 21:33:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-10 21:33:08 +0300 |
commit | a5f518e4cbfd3b47c62d2ef5b524ae1252af9e35 (patch) | |
tree | 10952d41840a847415f671f5f3bbdf01a877e9d1 /src/mir_core | |
parent | e9167fdb38669870baf1a5f4255f0b0a043fa267 (diff) |
surprise... IDCANCEL == 2, while we need to return zero
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/CDlgBase.cpp | 2 |
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); } |