update for HEAD-2003021201
[reactos.git] / lib / crtdll / process / _cwait.c
index 628a72d..d3a9b66 100644 (file)
@@ -8,23 +8,24 @@
  *              04/03/99: Created
  */
 #include <windows.h>
-#include <crtdll/process.h>
-#include <crtdll/errno.h>
-#include <crtdll/internal/file.h>
+#include <msvcrt/process.h>
+#include <msvcrt/errno.h>
+#include <msvcrt/internal/file.h>
 
-int _cwait (int* pnStatus, int hProc, int nAction)
+
+int _cwait(int* pnStatus, int hProc, int nAction)
 {
-  DWORD ExitCode;
+    DWORD ExitCode;
 
        nAction = 0;
-       if ( WaitForSingleObject((void *)hProc,INFINITE) != WAIT_OBJECT_0 ) {
+       if (WaitForSingleObject((void*)hProc, INFINITE) != WAIT_OBJECT_0) {
                __set_errno(ECHILD);
                return -1;
        }
 
-       if ( !GetExitCodeProcess((void *)hProc,&ExitCode) )
+       if (!GetExitCodeProcess((void*)hProc, &ExitCode))
                return -1;
        if (pnStatus != NULL)
-         *pnStatus = (int)ExitCode;
+        *pnStatus = (int)ExitCode;
        return hProc;
 }