X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e04d2bf54dcb336e20a27e906dcebdca368790b..a907139aa35261dba1b0377d8e0e138713812c76:/src/common/evtloopcmn.cpp?ds=sidebyside diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 482324cd4e..f0ae34416a 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -119,7 +119,7 @@ void wxEventLoopBase::ProcessPendingEvents() { // In ProcessPendingEvents(), new handlers might be added // and we can safely leave the critical section here. - wxENTER_CRIT_SECT(m_handlersWithPendingEventsLocker); + wxLEAVE_CRIT_SECT(m_handlersWithPendingEventsLocker); // NOTE: we always call ProcessPendingEvents() on the first event handler // with pending events because handlers auto-remove themselves @@ -127,7 +127,7 @@ void wxEventLoopBase::ProcessPendingEvents() // more pending events. m_handlersWithPendingEvents[0]->ProcessPendingEvents(); - wxLEAVE_CRIT_SECT(m_handlersWithPendingEventsLocker); + wxENTER_CRIT_SECT(m_handlersWithPendingEventsLocker); } // now the wxHandlersWithPendingEvents is surely empty; however some event