Don't use INVALID_HANDLE_VALUE as HANDLE_DETACH_PROCESS.
Modified: trunk/reactos/lib/kernel32/include/kernel32.h

Modified: trunk/reactos/lib/kernel32/include/kernel32.h
--- trunk/reactos/lib/kernel32/include/kernel32.h	2005-07-31 21:23:40 UTC (rev 16924)
+++ trunk/reactos/lib/kernel32/include/kernel32.h	2005-07-31 21:24:35 UTC (rev 16925)
@@ -26,9 +26,9 @@
 #define IsConsoleHandle(h) \
   (((((ULONG)h) & 0x10000003) == 0x3) ? TRUE : FALSE)
 
-#define HANDLE_DETACHED_PROCESS    (HANDLE)-1
-#define HANDLE_CREATE_NEW_CONSOLE  (HANDLE)-2
-#define HANDLE_CREATE_NO_WINDOW    (HANDLE)-3
+#define HANDLE_DETACHED_PROCESS    (HANDLE)-2
+#define HANDLE_CREATE_NEW_CONSOLE  (HANDLE)-3
+#define HANDLE_CREATE_NO_WINDOW    (HANDLE)-4
 
 /* Undocumented CreateProcess flag */
 #define STARTF_SHELLPRIVATE         0x400