From 3d915100abdfc8a21b14e4360be4791ab85ea189 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 23 Sep 2004 18:55:18 +0000 Subject: [PATCH] fixed initialization of the object attributes in CreateJobObjectW() svn path=/trunk/; revision=11009 --- reactos/lib/kernel32/process/job.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/lib/kernel32/process/job.c b/reactos/lib/kernel32/process/job.c index 3654225174f..3abe1da65d7 100644 --- a/reactos/lib/kernel32/process/job.c +++ b/reactos/lib/kernel32/process/job.c @@ -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 @@ CreateJobObjectW(LPSECURITY_ATTRIBUTES lpJobAttributes, { UNICODE_STRING JobName; OBJECT_ATTRIBUTES ObjectAttributes; + ULONG Attributes = 0; PVOID SecurityDescriptor; HANDLE hJob; NTSTATUS Status; @@ -78,7 +79,7 @@ CreateJobObjectW(LPSECURITY_ATTRIBUTES lpJobAttributes, { if(lpJobAttributes->bInheritHandle) { - ObjectAttributes.Attributes |= OBJ_INHERIT; + Attributes |= OBJ_INHERIT; } SecurityDescriptor = lpJobAttributes->lpSecurityDescriptor; } @@ -89,7 +90,7 @@ CreateJobObjectW(LPSECURITY_ATTRIBUTES lpJobAttributes, InitializeObjectAttributes(&ObjectAttributes, ((lpName != NULL) ? &JobName : NULL), - 0, + Attributes, NULL, SecurityDescriptor);