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…
==============================================================================
--- 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);
}
}