Commit c310c805 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntdll: Fix size comparison in NtQuerySystemInformation(SystemCodeIntegrityInformation).

parent 4239f2ac
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment