]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/thread.cpp
fix for late redraw messages in a already destroyed window hierarchy
[wxWidgets.git] / src / mac / carbon / thread.cpp
index ef01ae9b20db1bd8a1c252b3c0d6346dff79ee77..47638b34169912dd2d500cc86023b9bf5213c4b9 100644 (file)
@@ -542,7 +542,7 @@ void wxThread::Sleep(unsigned long milliseconds)
         YieldToAnyThread();
         Microseconds(&now);
         msnow = (now.hi * 4294967296.0 + now.lo) ;
-    } while( msstart - msnow < mssleep );
+    } while( msnow - msstart < mssleep );
 }
 
 int wxThread::GetCPUCount()