mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user