mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +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;
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue