NtCreateJobObject() should create the handle instead of just returning a uninitialized variable

svn path=/trunk/; revision=13197
This commit is contained in:
Thomas Bluemel 2005-01-21 22:25:54 +00:00
parent 81fd53f09d
commit bbc9243d77

View file

@ -262,6 +262,14 @@ NtCreateJobObject(PHANDLE JobHandle,
InsertTailList(&PsJobListHead, &Job->JobLinks);
ExReleaseFastMutex(&PsJobListLock);
Status = ObInsertObject(Job,
NULL,
DesiredAccess,
0,
NULL,
&hJob);
if(NT_SUCCESS(Status))
{
/* pass the handle back to the caller */
_SEH_TRY
{
@ -276,6 +284,7 @@ NtCreateJobObject(PHANDLE JobHandle,
}
_SEH_END;
}
}
return Status;
}