mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[SERVICES]
Clarify the fact that WaitForSingleObject returns WAIT_OBJECT_0 (which happens to be equal to ERROR_SUCCESS...) svn path=/trunk/; revision=59765
This commit is contained in:
parent
7be422afdc
commit
c2a5e8a610
1 changed files with 6 additions and 6 deletions
|
@ -956,7 +956,7 @@ ScmControlService(PSERVICE Service,
|
|||
dwError = ERROR_SERVICE_REQUEST_TIMEOUT;
|
||||
goto Done;
|
||||
}
|
||||
else if (dwError == ERROR_SUCCESS)
|
||||
else if (dwError == WAIT_OBJECT_0)
|
||||
{
|
||||
bResult = GetOverlappedResult(Service->lpImage->hControlPipe,
|
||||
&Overlapped,
|
||||
|
@ -1010,7 +1010,7 @@ ScmControlService(PSERVICE Service,
|
|||
dwError = ERROR_SERVICE_REQUEST_TIMEOUT;
|
||||
goto Done;
|
||||
}
|
||||
else if (dwError == ERROR_SUCCESS)
|
||||
else if (dwError == WAIT_OBJECT_0)
|
||||
{
|
||||
bResult = GetOverlappedResult(Service->lpImage->hControlPipe,
|
||||
&Overlapped,
|
||||
|
@ -1207,7 +1207,7 @@ ScmSendStartCommand(PSERVICE Service,
|
|||
dwError = ERROR_SERVICE_REQUEST_TIMEOUT;
|
||||
goto Done;
|
||||
}
|
||||
else if (dwError == ERROR_SUCCESS)
|
||||
else if (dwError == WAIT_OBJECT_0)
|
||||
{
|
||||
bResult = GetOverlappedResult(Service->lpImage->hControlPipe,
|
||||
&Overlapped,
|
||||
|
@ -1261,7 +1261,7 @@ ScmSendStartCommand(PSERVICE Service,
|
|||
dwError = ERROR_SERVICE_REQUEST_TIMEOUT;
|
||||
goto Done;
|
||||
}
|
||||
else if (dwError == ERROR_SUCCESS)
|
||||
else if (dwError == WAIT_OBJECT_0)
|
||||
{
|
||||
bResult = GetOverlappedResult(Service->lpImage->hControlPipe,
|
||||
&Overlapped,
|
||||
|
@ -1425,9 +1425,9 @@ ScmWaitForServiceConnect(PSERVICE Service)
|
|||
|
||||
return ERROR_SERVICE_REQUEST_TIMEOUT;
|
||||
}
|
||||
else if (dwError == ERROR_SUCCESS)
|
||||
else if (dwError == WAIT_OBJECT_0)
|
||||
{
|
||||
DPRINT("WaitForSingleObject() returned ERROR_SUCCESS\n");
|
||||
DPRINT("WaitForSingleObject() returned WAIT_OBJECT_0\n");
|
||||
|
||||
DPRINT("Process Id: %lu\n", dwProcessId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue