- Add target process reference/dereference in ProcessLdtInformation/ProcessWorkingSetWatch/ProcessWx86Information cases of NtQueryInformationProcess.

svn path=/trunk/; revision=41414
This commit is contained in:
Dmitry Chapyshev 2009-06-15 07:05:19 +00:00
parent ba2bee71f3
commit 29a53f8889

View file

@ -304,7 +304,20 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
case ProcessLdtInformation:
case ProcessWorkingSetWatch:
case ProcessWx86Information:
/* Reference the process */
Status = ObReferenceObjectByHandle(ProcessHandle,
PROCESS_QUERY_INFORMATION,
PsProcessType,
PreviousMode,
(PVOID*)&Process,
NULL);
if (!NT_SUCCESS(Status)) break;
DPRINT1("Not implemented: %lx\n", ProcessInformationClass);
/* Dereference the process */
ObDereferenceObject(Process);
Status = STATUS_NOT_IMPLEMENTED;
break;