[ros-diffs] [ekohl] 35606: Don't try to print information about a service that doesn't exist.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sun Aug 24 20:31:00 CEST 2008


Author: ekohl
Date: Sun Aug 24 13:30:59 2008
New Revision: 35606

URL: http://svn.reactos.org/svn/reactos?rev=35606&view=rev
Log:
Don't try to print information about a service that doesn't exist.

Modified:
    trunk/reactos/base/applications/sc/query.c

Modified: trunk/reactos/base/applications/sc/query.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sc/query.c?rev=35606&r1=35605&r2=35606&view=diff
==============================================================================
--- trunk/reactos/base/applications/sc/query.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sc/query.c [iso-8859-1] Sun Aug 24 13:30:59 2008
@@ -227,17 +227,11 @@
         LPCTSTR ServiceName = *ServiceArgs;
 
         pStatus = QueryService(ServiceName);
-        if (bExtended)
+        if (pStatus)
         {
             PrintService(ServiceName,
                          pStatus,
-                         TRUE);
-        }
-        else
-        {
-            PrintService(ServiceName,
-                         pStatus,
-                         FALSE);
+                         bExtended);
         }
     }
 



More information about the Ros-diffs mailing list