Commit c6c109a3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Use named constants instead of magic numbers.

parent a5686fe5
......@@ -72,7 +72,7 @@ static int msvcrt_spawn(int flags, const char* exe, char* cmdline, char* env)
switch(flags)
{
case _P_WAIT:
WaitForSingleObject(pi.hProcess,-1); /* wait forvever */
WaitForSingleObject(pi.hProcess, INFINITE);
GetExitCodeProcess(pi.hProcess,&pi.dwProcessId);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
......@@ -200,7 +200,7 @@ int _cwait(int *status, int pid, int action)
action = action; /* Remove warning */
if (!WaitForSingleObject(hPid, -1)) /* wait forever */
if (!WaitForSingleObject(hPid, INFINITE))
{
if (status)
{
......
......@@ -310,7 +310,7 @@ BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData,
if(hThread)
{
/* Wait for the thread to signal us to continue */
WaitForSingleObject(ti.hEvent, -1);
WaitForSingleObject(ti.hEvent, INFINITE);
CloseHandle(hThread);
bCalled = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment