X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e04d2bf54dcb336e20a27e906dcebdca368790b..ee49f54091935330ffbd942794748986faac8215:/src/msw/evtloop.cpp diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index d452e18d3a..81276cfaee 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -503,7 +503,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess) } // if there are pending events, we must process them. - ProcessPendingEvents(); + if (wxTheApp) + wxTheApp->ProcessPendingEvents(); // put back unprocessed events in the queue DWORD id = GetCurrentThreadId();