Alex Henrie : ntdll: Don' t report false memory statistics for other processes.
Module: wine Branch: master Commit: 08ea8280d38e0592abd817d13a058567db0ea5bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=08ea8280d38e0592abd817d13a... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Mon Mar 20 22:29:55 2017 -0600 ntdll: Don't report false memory statistics for other processes. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index adff826..8689d9b 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -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);
participants (1)
-
Alexandre Julliard