mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CSRSS] Do not give IOPL to the Client/Server native process if ran on a AMD64 system
ProcessUserModeIOPL is strictly implemented for 32-bit architecture so it doesn't make any sense for CSRSS to gather user mode I/O privilege when that won't work anyway.
This commit is contained in:
parent
2791ecd303
commit
f144ba8d8b
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ _main(int argc,
|
||||||
&BasePriority,
|
&BasePriority,
|
||||||
sizeof(KPRIORITY));
|
sizeof(KPRIORITY));
|
||||||
|
|
||||||
|
#if defined (_X86_)
|
||||||
/* Give us IOPL so that we can access the VGA registers */
|
/* Give us IOPL so that we can access the VGA registers */
|
||||||
Status = NtSetInformationProcess(NtCurrentProcess(),
|
Status = NtSetInformationProcess(NtCurrentProcess(),
|
||||||
ProcessUserModeIOPL,
|
ProcessUserModeIOPL,
|
||||||
|
@ -70,6 +71,7 @@ _main(int argc,
|
||||||
&Response);
|
&Response);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize CSR through CSRSRV */
|
/* Initialize CSR through CSRSRV */
|
||||||
Status = CsrServerInitialization(argc, argv);
|
Status = CsrServerInitialization(argc, argv);
|
||||||
|
|
Loading…
Reference in a new issue