diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 52b3291077..46719dc9c2 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -826,7 +826,7 @@ wxThreadInternal::WaitForTerminate(bool shouldCancel, // in a secondary thread because if it had created some // window somehow (possible not even using wxWindows) // the system might dead lock then - if ( IsMain() ) + if ( wxThread::IsMain() ) { // it looks that sometimes WAIT_OBJECT_0 + 1 is // returned but there are no messages in the thread