mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[SERVICES]
RSetServiceStatus: Set the wait hint and check point only if the service is in a pending state, otherwise they should be 0. svn path=/trunk/; revision=62408
This commit is contained in:
parent
d0ba06e7f2
commit
6e275a78d2
1 changed files with 10 additions and 0 deletions
|
@ -1661,6 +1661,16 @@ DWORD RSetServiceStatus(
|
|||
return ERROR_INVALID_DATA;
|
||||
}
|
||||
|
||||
/* Set the wait hint and check point only if the service is in a pending state,
|
||||
otherwise they should be 0 */
|
||||
if (lpServiceStatus->dwCurrentState == SERVICE_STOPPED ||
|
||||
lpServiceStatus->dwCurrentState == SERVICE_PAUSED ||
|
||||
lpServiceStatus->dwCurrentState == SERVICE_RUNNING)
|
||||
{
|
||||
lpServiceStatus->dwWaitHint = 0;
|
||||
lpServiceStatus->dwCheckPoint = 0;
|
||||
}
|
||||
|
||||
/* Lock the service database exclusively */
|
||||
ScmLockDatabaseExclusive();
|
||||
|
||||
|
|
Loading…
Reference in a new issue