From 6d1df55bf3b6051ad61e9c7cb7d63f13c1b9771f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 14 Nov 2024 17:32:08 +0100 Subject: [PATCH] ntdll: Always return 0 length on failure in SystemFirmwareTableInformation. --- 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 8aeb324ab4d..e9ed8b6f3a4 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -3479,6 +3479,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, ret = STATUS_INFO_LENGTH_MISMATCH; break; } + len = 0; switch (sfti->Action) { @@ -3489,7 +3490,6 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, ret = get_firmware_info(sfti, size, &len); break; default: - len = 0; ret = STATUS_NOT_IMPLEMENTED; FIXME("info_class SYSTEM_FIRMWARE_TABLE_INFORMATION action %d\n", sfti->Action); }