]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
fix memory leak (coverity checker CID 53)
[wxWidgets.git] / src / msw / thread.cpp
index 602968aca608372e4cd2a834f85eef9807770a45..30484e2c86debec6b7df855ac32cc054ffcfc4dc 100644 (file)
@@ -925,7 +925,7 @@ bool wxThread::SetConcurrency(size_t WXUNUSED_IN_WINCE(level))
             dwProcMask |= bit;
 
             // another process added
-            if ( !--level )
+            if ( --level == 0 )
             {
                 // and that's enough
                 break;