From c310c8050debea8677f3e0cb6b62f3d117ccd2fe Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 20 Oct 2021 20:54:22 +0300 Subject: [PATCH] ntdll: Fix size comparison in NtQuerySystemInformation(SystemCodeIntegrityInformation). Signed-off-by: Paul Gofman Signed-off-by: Alexandre Julliard --- dlls/ntdll/unix/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index c4853568599..c6bbabd85c5 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -3064,7 +3064,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, len = sizeof(SYSTEM_CODEINTEGRITY_INFORMATION); - if (size < len) + if (size >= len) integrity_info->CodeIntegrityOptions = CODEINTEGRITY_OPTION_ENABLED; else ret = STATUS_INFO_LENGTH_MISMATCH;