mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +00:00
Don't try to print information about a service that doesn't exist.
svn path=/trunk/; revision=35606
This commit is contained in:
parent
866b97d444
commit
0eaca617d3
1 changed files with 2 additions and 8 deletions
|
@ -227,17 +227,11 @@ Query(LPCTSTR *ServiceArgs,
|
|||
LPCTSTR ServiceName = *ServiceArgs;
|
||||
|
||||
pStatus = QueryService(ServiceName);
|
||||
if (bExtended)
|
||||
if (pStatus)
|
||||
{
|
||||
PrintService(ServiceName,
|
||||
pStatus,
|
||||
TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintService(ServiceName,
|
||||
pStatus,
|
||||
FALSE);
|
||||
bExtended);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue