mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:27:19 +00:00
Use named constants instead of magic numbers.
This commit is contained in:
parent
a5686fe589
commit
c6c109a362
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue