From: Dāvis Mosāns davispuh@gmail.com
Make return value to work like in Windows where given size must match exactly for STATUS_SUCCESS result.
Co-authored-by: Haltinulo --- dlls/ntdll/unix/system.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index 879a5893758..45af2e2d4a6 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -2885,6 +2885,9 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, shi->Handle[i].ObjectType = handle_info[i].type; /* FIXME: Fill out ObjectPointer */ } + + if (len != size) + ret = STATUS_INFO_LENGTH_MISMATCH; } else if (ret == STATUS_BUFFER_TOO_SMALL) {