[SERVMAN]

- Fix that gcc doesn't support c99
- According to Christoph, this should fix the gcc build. If not, blame him.

svn path=/trunk/; revision=67101
This commit is contained in:
Ged Murphy 2015-04-08 18:31:29 +00:00
parent 1679681323
commit e6783cfeac
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
add_subdirectory(devmgmt) add_subdirectory(devmgmt)
add_subdirectory(eventvwr) add_subdirectory(eventvwr)
add_subdirectory(servman)

View file

@ -25,7 +25,7 @@ DoControlService(LPWSTR ServiceName,
DWORD OldCheckPoint; DWORD OldCheckPoint;
DWORD WaitTime; DWORD WaitTime;
DWORD MaxWait; DWORD MaxWait;
DWORD ReqState; DWORD ReqState, i;
BOOL Result; BOOL Result;
/* Set the state we're interested in */ /* Set the state we're interested in */
@ -91,7 +91,7 @@ DoControlService(LPWSTR ServiceName,
else if (WaitTime > 10000) WaitTime = 10000; else if (WaitTime > 10000) WaitTime = 10000;
/* We don't wanna wait for up to 10 secs without incrementing */ /* 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); Sleep(1000);
if (hProgress) if (hProgress)