Don't try to print information about a service that doesn't exist.

svn path=/trunk/; revision=35606
This commit is contained in:
Eric Kohl 2008-08-24 18:30:59 +00:00
parent 866b97d444
commit 0eaca617d3

View file

@ -227,17 +227,11 @@ Query(LPCTSTR *ServiceArgs,
LPCTSTR ServiceName = *ServiceArgs; LPCTSTR ServiceName = *ServiceArgs;
pStatus = QueryService(ServiceName); pStatus = QueryService(ServiceName);
if (bExtended) if (pStatus)
{ {
PrintService(ServiceName, PrintService(ServiceName,
pStatus, pStatus,
TRUE); bExtended);
}
else
{
PrintService(ServiceName,
pStatus,
FALSE);
} }
} }