From c6c109a362263e4ef8aec891650591edad6569d6 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 9 Apr 2004 19:03:13 +0000 Subject: [PATCH] Use named constants instead of magic numbers. --- dlls/msvcrt/process.c | 4 ++-- dlls/shlwapi/thread.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/process.c b/dlls/msvcrt/process.c index cb96782aba..889eebad86 100644 --- a/dlls/msvcrt/process.c +++ b/dlls/msvcrt/process.c @@ -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) { diff --git a/dlls/shlwapi/thread.c b/dlls/shlwapi/thread.c index daf3f22168..95c5448d6a 100644 --- a/dlls/shlwapi/thread.c +++ b/dlls/shlwapi/thread.c @@ -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; } -- 2.32.0.93.g670b81a890