https://git.reactos.org/?p=reactos.git;a=commitdiff;h=afb04208f721f953b8ccb…
commit afb04208f721f953b8ccb9432e4ed81eaef1cd82
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Tue Jan 11 22:44:03 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Jan 11 22:45:15 2022 +0100
[KERNEL32] Add missing NTOS_MODE_USER when including the NDK.
---
dll/win32/kernel32/k32.h | 1 +
dll/win32/kernel32/kernel32_vista/k32_vista.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/dll/win32/kernel32/k32.h b/dll/win32/kernel32/k32.h
index ec2543a4f00..c84dabe0086 100644
--- a/dll/win32/kernel32/k32.h
+++ b/dll/win32/kernel32/k32.h
@@ -32,6 +32,7 @@
#undef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WS03SP1
+#define NTOS_MODE_USER
#include <ndk/cmfuncs.h>
#include <ndk/exfuncs.h>
#include <ndk/iofuncs.h>
diff --git a/dll/win32/kernel32/kernel32_vista/k32_vista.h
b/dll/win32/kernel32/kernel32_vista/k32_vista.h
index 7f78e53e68a..6b0c3ce42ae 100644
--- a/dll/win32/kernel32/kernel32_vista/k32_vista.h
+++ b/dll/win32/kernel32/kernel32_vista/k32_vista.h
@@ -10,6 +10,7 @@
#undef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WS03SP1
+#define NTOS_MODE_USER
#include <ndk/iofuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/obfuncs.h>