mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
- Initialized the process create time.
- Fixed some minor bugs. svn path=/trunk/; revision=14767
This commit is contained in:
parent
4db3d406aa
commit
d00288c263
|
@ -287,6 +287,8 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
|||
/* Clean up the Object */
|
||||
DPRINT("Cleaning Process Object\n");
|
||||
RtlZeroMemory(Process, sizeof(EPROCESS));
|
||||
|
||||
KeQuerySystemTime(&Process->CreateTime);
|
||||
|
||||
/* Inherit stuff from the Parent since we now have the object created */
|
||||
if (pParentProcess)
|
||||
|
@ -387,6 +389,7 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
|||
|
||||
/* Let's take advantage of this time to kill the reference too */
|
||||
ObDereferenceObject(pParentProcess);
|
||||
pParentProcess = NULL;
|
||||
}
|
||||
|
||||
/* W00T! The process can now be activated */
|
||||
|
@ -407,23 +410,23 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
|
|||
&hProcess);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Could not get a handle to the Process Object\n");
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
DPRINT1("Could not get a handle to the Process Object\n");
|
||||
ExAcquireFastMutex(&PspActiveProcessMutex);
|
||||
RemoveEntryList(&Process->ProcessListEntry);
|
||||
ExReleaseFastMutex(&PspActiveProcessMutex);
|
||||
ObDereferenceObject(Process);
|
||||
goto exitdereferenceobjects;
|
||||
}
|
||||
|
||||
|
||||
DPRINT("Done. Returning handle: %x\n", hProcess);
|
||||
if (NT_SUCCESS(Status))
|
||||
_SEH_TRY
|
||||
{
|
||||
_SEH_TRY
|
||||
{
|
||||
*ProcessHandle = hProcess;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
Status = _SEH_GetExceptionCode();
|
||||
} _SEH_END;
|
||||
}
|
||||
*ProcessHandle = hProcess;
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
Status = _SEH_GetExceptionCode();
|
||||
} _SEH_END;
|
||||
|
||||
/* FIXME: ObGetObjectSecurity(Process, &SecurityDescriptor)
|
||||
SeAccessCheck
|
||||
|
|
Loading…
Reference in a new issue