diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index 3f2b36328b..ab7d57e8c3 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -746,6 +746,7 @@ void wxProgressDialog::DoGetPosition(int *x, int *y) const if ( HasNativeTaskDialog() ) { wxPoint pos; + if ( m_sharedData ) { wxCriticalSectionLocker locker(m_sharedData->m_cs); pos = m_sharedData->m_winPosition;