From f144ba8d8b1a35d9629215beb1fbcafa7fab63d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Sun, 20 Jun 2021 15:49:55 +0200 Subject: [PATCH] [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. --- subsystems/win32/csrss/csrss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsystems/win32/csrss/csrss.c b/subsystems/win32/csrss/csrss.c index 10f916ccf3c..7862d8f7a4d 100644 --- a/subsystems/win32/csrss/csrss.c +++ b/subsystems/win32/csrss/csrss.c @@ -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);