Module: wine Branch: master Commit: c310c8050debea8677f3e0cb6b62f3d117ccd2fe URL: https://source.winehq.org/git/wine.git/?a=commit;h=c310c8050debea8677f3e0cb6...
Author: Paul Gofman pgofman@codeweavers.com Date: Wed Oct 20 20:54:22 2021 +0300
ntdll: Fix size comparison in NtQuerySystemInformation(SystemCodeIntegrityInformation).
Signed-off-by: Paul Gofman pgofman@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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;