[PATCH 2/3] kernel32: Implement GetSystemDEPPolicy().
Zebediah Figura
z.figura12 at gmail.com
Thu Jan 28 22:08:21 CST 2021
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/kernel32/process.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 92582ae31de..227d49ea37e 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -34,6 +34,7 @@
#include "wincon.h"
#include "kernel_private.h"
#include "psapi.h"
+#include "ddk/wdm.h"
#include "wine/exception.h"
#include "wine/server.h"
#include "wine/asm.h"
@@ -41,6 +42,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(process);
+static const struct _KUSER_SHARED_DATA *user_shared_data = (struct _KUSER_SHARED_DATA *)0x7ffe0000;
+
typedef struct
{
LPSTR lpEnvAddress;
@@ -553,8 +556,7 @@ DWORD WINAPI WTSGetActiveConsoleSessionId(void)
*/
DEP_SYSTEM_POLICY_TYPE WINAPI GetSystemDEPPolicy(void)
{
- FIXME("stub\n");
- return OptIn;
+ return user_shared_data->NXSupportPolicy;
}
/**********************************************************************
--
2.30.0
More information about the wine-devel
mailing list