[PATCH v2 1/2] ntdll: Don't report false memory statistics for other processes.

Alex Henrie alexhenrie24 at gmail.com
Mon Mar 20 23:29:55 CDT 2017


v2: Added this patch to the patchset.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 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 adff826b51..8689d9b645 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);
-- 
2.12.0




More information about the wine-patches mailing list