mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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,
|
||||
sizeof(KPRIORITY));
|
||||
|
||||
#if defined (_X86_)
|
||||
/* Give us IOPL so that we can access the VGA registers */
|
||||
Status = NtSetInformationProcess(NtCurrentProcess(),
|
||||
ProcessUserModeIOPL,
|
||||
|
@ -70,6 +71,7 @@ _main(int argc,
|
|||
&Response);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize CSR through CSRSRV */
|
||||
Status = CsrServerInitialization(argc, argv);
|
||||
|
|
Loading…
Reference in a new issue