title: ATLASSUME assertion fails in CDialogImpl::EndDialog(IDCLOSE)
body: <p>I'm calling <code>EndDialog(IDCLOSE)</code> to end the application in a class inheriting <code>CDialogImpl</code> and I get a Debug Assertion Failed run time error on <code>ATLASSUME(m_bModal)</code> in <code>CDialogImpl::EndDialog(int)</code>. What am I doing wrong?</p>