ntdll-MemoryWorkingSetExInformation: Add patch.

This commit is contained in:
Zebediah Figura
2019-02-19 18:48:47 -06:00
parent 13b580a0c8
commit 7937739028
4 changed files with 203 additions and 122 deletions

View File

@@ -1,41 +0,0 @@
From cb8b12121ca11c88fcb78439ccd6b4f549e1895a Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Mon, 23 Jul 2018 19:30:54 -0700
Subject: [PATCH] ntdll: Unsupported stub for MemoryWorkingSetExInformation.
Implemented in Windows Vista. This will cause programs to fail if Wine version
is higher than Windows XP / 2003.
---
dlls/ntdll/virtual.c | 1 +
include/winternl.h | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 36f0aef..a39ca94 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -3135,6 +3135,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
UNIMPLEMENTED_INFO_CLASS(MemoryWorkingSetList);
UNIMPLEMENTED_INFO_CLASS(MemoryBasicVlmInformation);
+ UNIMPLEMENTED_INFO_CLASS(MemoryWorkingSetExInformation);
default:
FIXME("(%p,%p,info_class=%d,%p,%ld,%p) Unknown information class\n",
diff --git a/include/winternl.h b/include/winternl.h
index 2ea22ed..8924d76 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -1038,7 +1038,8 @@ typedef enum _MEMORY_INFORMATION_CLASS {
MemoryBasicInformation,
MemoryWorkingSetList,
MemorySectionName,
- MemoryBasicVlmInformation
+ MemoryBasicVlmInformation,
+ MemoryWorkingSetExInformation
} MEMORY_INFORMATION_CLASS;
typedef struct _MEMORY_SECTION_NAME
--
1.9.1