[haiku-commits] r41750 - haiku/branches/developer/bonefish/signals/src/system/kernel/debug

Author: bonefish
Date: 2011-05-25 20:25:35 +0200 (Wed, 25 May 2011)
New Revision: 41750
Changeset: https://dev.haiku-os.org/changeset/41750

Modified:
   
haiku/branches/developer/bonefish/signals/src/system/kernel/debug/system_profiler.cpp
Log:
SystemProfiler::Init(): Fixed inverse abort check in the team and the thread
iteration loops.


Modified: 
haiku/branches/developer/bonefish/signals/src/system/kernel/debug/system_profiler.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/system/kernel/debug/system_profiler.cpp
       2011-05-25 18:24:21 UTC (rev 41749)
+++ 
haiku/branches/developer/bonefish/signals/src/system/kernel/debug/system_profiler.cpp
       2011-05-25 18:25:35 UTC (rev 41750)
@@ -462,7 +462,7 @@
                        // release the reference returned by the iterator
                        team->ReleaseReference();
 
-                       if (added)
+                       if (!added)
                                return B_BUFFER_OVERFLOW;
 
                        locker.Lock();
@@ -490,7 +490,7 @@
                        // release the reference returned by the iterator
                        thread->ReleaseReference();
 
-                       if (added)
+                       if (!added)
                                return B_BUFFER_OVERFLOW;
 
                        locker.Lock();


Other related posts:

  • » [haiku-commits] r41750 - haiku/branches/developer/bonefish/signals/src/system/kernel/debug - ingo_weinhold