Use named constants instead of magic numbers
Francois Gouget
fgouget at free.fr
Thu Apr 8 18:26:29 CDT 2004
Changelog:
* dlls/msvcrt/process.c
dlls/shlwapi/thread.c
Use named constants instead of magic numbers.
Index: dlls/msvcrt/process.c
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrt/process.c,v
retrieving revision 1.22
diff -u -r1.22 process.c
--- a/dlls/msvcrt/process.c 16 Mar 2004 19:17:11 -0000 1.22
+++ b/dlls/msvcrt/process.c 1 Apr 2004 16:25:56 -0000
@@ -72,7 +72,7 @@
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 @@
action = action; /* Remove warning */
- if (!WaitForSingleObject(hPid, -1)) /* wait forever */
+ if (!WaitForSingleObject(hPid, INFINITE))
{
if (status)
{
Index: dlls/shlwapi/thread.c
===================================================================
RCS file: /var/cvs/wine/dlls/shlwapi/thread.c,v
retrieving revision 1.15
diff -u -r1.15 thread.c
--- a/dlls/shlwapi/thread.c 27 Jan 2004 00:01:43 -0000 1.15
+++ b/dlls/shlwapi/thread.c 1 Apr 2004 16:20:29 -0000
@@ -310,7 +310,7 @@
if(hThread)
{
/* Wait for the thread to signal us to continue */
- WaitForSingleObject(ti.hEvent, -1);
+ WaitForSingleObject(ti.hEvent, INFINITE);
CloseHandle(hThread);
bCalled = TRUE;
}
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
It really galls me that most of the computer power in the world
is wasted on screen savers.
Chris Caldwell from the GIMPS project
http://www.mersenne.org/prime.htm
More information about the wine-patches
mailing list