ntdll: Don't report false memory statistics for other processes.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-03-20 22:29:55 -06:00 committed by Alexandre Julliard
parent a878f0a02a
commit 08ea8280d3
1 changed files with 4 additions and 1 deletions

View File

@ -271,7 +271,10 @@ NTSTATUS WINAPI NtQueryInformationProcess(
else
{
memset(&pvmi, 0 , sizeof(VM_COUNTERS));
fill_VM_COUNTERS(&pvmi);
if (ProcessHandle == GetCurrentProcess())
fill_VM_COUNTERS(&pvmi);
else
FIXME("Need wineserver call to get VM counters for another process\n");
len = ProcessInformationLength;
if (len != FIELD_OFFSET(VM_COUNTERS,PrivatePageCount)) len = sizeof(VM_COUNTERS);