Zebediah Figura : kernel32: Implement GetSystemDEPPolicy().
Alexandre Julliard
julliard at winehq.org
Fri Jan 29 15:10:21 CST 2021
Module: wine
Branch: master
Commit: 246e2356e5a178ca7e56d350cbc5cdaecc8538ab
URL: https://source.winehq.org/git/wine.git/?a=commit;h=246e2356e5a178ca7e56d350cbc5cdaecc8538ab
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Jan 28 22:08:21 2021 -0600
kernel32: Implement GetSystemDEPPolicy().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
}
/**********************************************************************
More information about the wine-cvs
mailing list