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:
parent
4239f2acf7
commit
c310c8050d
|
@ -3064,7 +3064,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
|
||||||
|
|
||||||
len = sizeof(SYSTEM_CODEINTEGRITY_INFORMATION);
|
len = sizeof(SYSTEM_CODEINTEGRITY_INFORMATION);
|
||||||
|
|
||||||
if (size < len)
|
if (size >= len)
|
||||||
integrity_info->CodeIntegrityOptions = CODEINTEGRITY_OPTION_ENABLED;
|
integrity_info->CodeIntegrityOptions = CODEINTEGRITY_OPTION_ENABLED;
|
||||||
else
|
else
|
||||||
ret = STATUS_INFO_LENGTH_MISMATCH;
|
ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
|
Loading…
Reference in New Issue