From 03636df1e31140ff17fee89803941be1014e4db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Fri, 25 Jun 2021 11:55:35 +0200 Subject: [PATCH] [CSRSS] Enable compilation of raise hard error function call code With introduction of 74e527b, a330b56 and subsequently 2791ecd ReactOS can now properly set IOPL (I/O privilege level) for user mode trusted processes. With that said, enable the compilation of raise hard error function call code back. --- subsystems/win32/csrss/csrss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subsystems/win32/csrss/csrss.c b/subsystems/win32/csrss/csrss.c index 7862d8f7a4d..7dd97df16c7 100644 --- a/subsystems/win32/csrss/csrss.c +++ b/subsystems/win32/csrss/csrss.c @@ -10,6 +10,7 @@ /* INCLUDES *******************************************************************/ #define NTOS_MODE_USER +#include #include #include @@ -42,7 +43,7 @@ _main(int argc, { KPRIORITY BasePriority = (8 + 1) + 4; NTSTATUS Status; - //ULONG Response; // see the #if 0 + ULONG Response; UNREFERENCED_PARAMETER(envp); UNREFERENCED_PARAMETER(DebugFlag); @@ -62,14 +63,12 @@ _main(int argc, { /* Raise a hard error */ DPRINT1("CSRSS: Could not raise IOPL, Status: 0x%08lx\n", Status); -#if 0 Status = NtRaiseHardError(STATUS_IO_PRIVILEGE_FAILED, 0, 0, NULL, OptionOk, &Response); -#endif } #endif