mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[CSRSS] Enable compilation of raise hard error function call code
With introduction of74e527b
,a330b56
and subsequently2791ecd
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.
This commit is contained in:
parent
f144ba8d8b
commit
03636df1e3
1 changed files with 2 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
||||||
/* INCLUDES *******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
|
#include <ndk/exfuncs.h>
|
||||||
#include <ndk/psfuncs.h>
|
#include <ndk/psfuncs.h>
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@ _main(int argc,
|
||||||
{
|
{
|
||||||
KPRIORITY BasePriority = (8 + 1) + 4;
|
KPRIORITY BasePriority = (8 + 1) + 4;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
//ULONG Response; // see the #if 0
|
ULONG Response;
|
||||||
UNREFERENCED_PARAMETER(envp);
|
UNREFERENCED_PARAMETER(envp);
|
||||||
UNREFERENCED_PARAMETER(DebugFlag);
|
UNREFERENCED_PARAMETER(DebugFlag);
|
||||||
|
|
||||||
|
@ -62,14 +63,12 @@ _main(int argc,
|
||||||
{
|
{
|
||||||
/* Raise a hard error */
|
/* Raise a hard error */
|
||||||
DPRINT1("CSRSS: Could not raise IOPL, Status: 0x%08lx\n", Status);
|
DPRINT1("CSRSS: Could not raise IOPL, Status: 0x%08lx\n", Status);
|
||||||
#if 0
|
|
||||||
Status = NtRaiseHardError(STATUS_IO_PRIVILEGE_FAILED,
|
Status = NtRaiseHardError(STATUS_IO_PRIVILEGE_FAILED,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
OptionOk,
|
OptionOk,
|
||||||
&Response);
|
&Response);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue