https://git.reactos.org/?p=reactos.git;a=commitdiff;h=03636df1e31140ff17fee8...
commit 03636df1e31140ff17fee89803941be1014e4db7 Author: George Bișoc george.bisoc@reactos.org AuthorDate: Fri Jun 25 11:55:35 2021 +0200 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Fri Jun 25 11:55:35 2021 +0200
[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 <ndk/exfuncs.h> #include <ndk/psfuncs.h> #include <ndk/rtlfuncs.h>
@@ -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