Use named constants instead of magic numbers.

This commit is contained in:
Francois Gouget 2004-04-09 19:03:13 +00:00 committed by Alexandre Julliard
parent a5686fe589
commit c6c109a362
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ static int msvcrt_spawn(int flags, const char* exe, char* cmdline, char* env)
switch(flags) switch(flags)
{ {
case _P_WAIT: case _P_WAIT:
WaitForSingleObject(pi.hProcess,-1); /* wait forvever */ WaitForSingleObject(pi.hProcess, INFINITE);
GetExitCodeProcess(pi.hProcess,&pi.dwProcessId); GetExitCodeProcess(pi.hProcess,&pi.dwProcessId);
CloseHandle(pi.hProcess); CloseHandle(pi.hProcess);
CloseHandle(pi.hThread); CloseHandle(pi.hThread);
@ -200,7 +200,7 @@ int _cwait(int *status, int pid, int action)
action = action; /* Remove warning */ action = action; /* Remove warning */
if (!WaitForSingleObject(hPid, -1)) /* wait forever */ if (!WaitForSingleObject(hPid, INFINITE))
{ {
if (status) if (status)
{ {

View file

@ -310,7 +310,7 @@ BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData,
if(hThread) if(hThread)
{ {
/* Wait for the thread to signal us to continue */ /* Wait for the thread to signal us to continue */
WaitForSingleObject(ti.hEvent, -1); WaitForSingleObject(ti.hEvent, INFINITE);
CloseHandle(hThread); CloseHandle(hThread);
bCalled = TRUE; bCalled = TRUE;
} }