- Add flags for NtCreateProcessEx for upcoming patch.
authorAlex Ionescu <aionescu@gmail.com>
Thu, 8 Dec 2005 00:14:59 +0000 (00:14 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Thu, 8 Dec 2005 00:14:59 +0000 (00:14 +0000)
- Clear Tcb->Win32Thread during win32 cleanup.

svn path=/trunk/; revision=19958

reactos/include/ndk/pstypes.h
reactos/subsys/win32k/main/dllmain.c

index 4efd74d..846f933 100644 (file)
@@ -88,6 +88,18 @@ extern NTSYSAPI POBJECT_TYPE PsProcessType;
 #define PROCESS_PRIORITY_CLASS_BELOW_NORMAL     5
 #define PROCESS_PRIORITY_CLASS_ABOVE_NORMAL     6
 
 #define PROCESS_PRIORITY_CLASS_BELOW_NORMAL     5
 #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
 //
 //
 // Process base priorities
 //
index f79c3a2..94eb7a8 100644 (file)
@@ -248,6 +248,7 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
          
          e = PopEntryList(&Win32Thread->ReferencesList);
       }
          
          e = PopEntryList(&Win32Thread->ReferencesList);
       }
+      PsSetThreadWin32Thread(Thread, NULL);
     }
 
   RETURN( STATUS_SUCCESS);
     }
 
   RETURN( STATUS_SUCCESS);