mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
NtCreateJobObject() should create the handle instead of just returning a uninitialized variable
svn path=/trunk/; revision=13197
This commit is contained in:
parent
81fd53f09d
commit
bbc9243d77
1 changed files with 20 additions and 11 deletions
|
@ -262,6 +262,14 @@ NtCreateJobObject(PHANDLE JobHandle,
|
||||||
InsertTailList(&PsJobListHead, &Job->JobLinks);
|
InsertTailList(&PsJobListHead, &Job->JobLinks);
|
||||||
ExReleaseFastMutex(&PsJobListLock);
|
ExReleaseFastMutex(&PsJobListLock);
|
||||||
|
|
||||||
|
Status = ObInsertObject(Job,
|
||||||
|
NULL,
|
||||||
|
DesiredAccess,
|
||||||
|
0,
|
||||||
|
NULL,
|
||||||
|
&hJob);
|
||||||
|
if(NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
/* pass the handle back to the caller */
|
/* pass the handle back to the caller */
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
|
@ -276,6 +284,7 @@ NtCreateJobObject(PHANDLE JobHandle,
|
||||||
}
|
}
|
||||||
_SEH_END;
|
_SEH_END;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue