mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 22:55:05 +00:00
[SERVMAN] Fix GCC build.
svn path=/trunk/; revision=67102
This commit is contained in:
parent
e6783cfeac
commit
0b9cd86300
|
@ -140,6 +140,7 @@ DoStartService(LPWSTR ServiceName,
|
|||
/* Loop until it's running */
|
||||
while (ServiceStatus.dwCurrentState != SERVICE_RUNNING)
|
||||
{
|
||||
int i;
|
||||
/* Fixup the wait time */
|
||||
WaitTime = ServiceStatus.dwWaitHint / 10;
|
||||
|
||||
|
@ -147,7 +148,7 @@ DoStartService(LPWSTR ServiceName,
|
|||
else if (WaitTime > 10000) WaitTime = 10000;
|
||||
|
||||
/* We don't wanna wait for up to 10 secs without incrementing */
|
||||
for (int i = WaitTime / 1000; i > 0; i--)
|
||||
for (i = WaitTime / 1000; i > 0; i--)
|
||||
{
|
||||
Sleep(1000);
|
||||
if (hProgress)
|
||||
|
|
|
@ -62,6 +62,7 @@ DoStopService(_In_z_ LPWSTR ServiceName,
|
|||
|
||||
while (ServiceStatus.dwCurrentState != SERVICE_STOPPED)
|
||||
{
|
||||
int i;
|
||||
/* Fixup the wait time */
|
||||
WaitTime = ServiceStatus.dwWaitHint / 10;
|
||||
|
||||
|
@ -69,7 +70,7 @@ DoStopService(_In_z_ LPWSTR ServiceName,
|
|||
else if (WaitTime > 10000) WaitTime = 10000;
|
||||
|
||||
/* We don't wanna wait for up to 10 secs without incrementing */
|
||||
for (int i = WaitTime / 1000; i > 0; i--)
|
||||
for (i = WaitTime / 1000; i > 0; i--)
|
||||
{
|
||||
Sleep(1000);
|
||||
if (hProgress)
|
||||
|
|
Loading…
Reference in a new issue