[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kinit
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2009-09-23 0:43:34
Message-ID: 1253666614.836770.29092.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1026964 by sengels:

fix crash when the process doesn't exist

 M  +4 -0      kinit_win.cpp  


--- trunk/KDE/kdelibs/kinit/kinit_win.cpp #1026963:1026964
@@ -172,6 +172,10 @@
 {
     ProcessListEntry *ple;
     foreach(ple,processList) {
+        if (ple->pid < 0) { 
+            qDebug() << "negative pid!";
+            continue;
+        }
         if (ple->name == name || ple->name == name + ".exe") {
             return ple;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic