- Add flags for NtCreateProcessEx for upcoming patch.
- Clear Tcb->Win32Thread during win32 cleanup.
Modified: trunk/reactos/include/ndk/pstypes.h
Modified: trunk/reactos/subsys/win32k/main/dllmain.c

Modified: trunk/reactos/include/ndk/pstypes.h
--- trunk/reactos/include/ndk/pstypes.h	2005-12-08 00:13:11 UTC (rev 19957)
+++ trunk/reactos/include/ndk/pstypes.h	2005-12-08 00:14:59 UTC (rev 19958)
@@ -89,6 +89,18 @@
 #define PROCESS_PRIORITY_CLASS_ABOVE_NORMAL     6
 
 //
+// NtCreateProcessEx flags
+//
+#define PS_REQUEST_BREAKAWAY                    1
+#define PS_NO_DEBUG_INHERIT                     2
+#define PS_INHERIT_HANDLES                      4
+#define PS_UNKNOWN_VALUE                        8
+#define PS_ALL_FLAGS                            (PS_REQUEST_BREAKAWAY | \
+                                                 PS_NO_DEBUG_INHERIT |  \
+                                                 PS_INHERIT_HANDLES |   \
+                                                 PS_UNKNOWN_VALUE)      
+
+//
 // Process base priorities
 //
 #define PROCESS_PRIORITY_IDLE                   3

Modified: trunk/reactos/subsys/win32k/main/dllmain.c
--- trunk/reactos/subsys/win32k/main/dllmain.c	2005-12-08 00:13:11 UTC (rev 19957)
+++ trunk/reactos/subsys/win32k/main/dllmain.c	2005-12-08 00:14:59 UTC (rev 19958)
@@ -248,6 +248,7 @@
          
          e = PopEntryList(&Win32Thread->ReferencesList);
       }
+      PsSetThreadWin32Thread(Thread, NULL);
     }
 
   RETURN( STATUS_SUCCESS);