Commit in reactos/lib/kernel32/process on MAIN
job.c+4-31.3 -> 1.4
fixed initialization of the object attributes in CreateJobObjectW()

reactos/lib/kernel32/process
job.c 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- job.c	23 Sep 2004 18:46:10 -0000	1.3
+++ job.c	23 Sep 2004 18:55:18 -0000	1.4
@@ -1,4 +1,4 @@
-/* $Id: job.c,v 1.3 2004/09/23 18:46:10 weiden Exp $
+/* $Id: job.c,v 1.4 2004/09/23 18:55:18 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -65,6 +65,7 @@
 {
   UNICODE_STRING JobName;
   OBJECT_ATTRIBUTES ObjectAttributes;
+  ULONG Attributes = 0;
   PVOID SecurityDescriptor;
   HANDLE hJob;
   NTSTATUS Status;
@@ -78,7 +79,7 @@
   {
     if(lpJobAttributes->bInheritHandle)
     {
-      ObjectAttributes.Attributes |= OBJ_INHERIT;
+      Attributes |= OBJ_INHERIT;
     }
     SecurityDescriptor = lpJobAttributes->lpSecurityDescriptor;
   }
@@ -89,7 +90,7 @@
   
   InitializeObjectAttributes(&ObjectAttributes,
                              ((lpName != NULL) ? &JobName : NULL),
-                             0,
+                             Attributes,
                              NULL,
                              SecurityDescriptor);
 
CVSspam 0.2.8