ntdll: Fix size comparison in NtQuerySystemInformation(SystemCodeIntegrityInformation).

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-10-20 20:54:22 +03:00 committed by Alexandre Julliard
parent 4239f2acf7
commit c310c8050d
1 changed files with 1 additions and 1 deletions

View File

@ -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;