ntdll: Always return 0 length on failure in SystemFirmwareTableInformation.

This commit is contained in:
Alexandre Julliard 2024-11-14 17:32:08 +01:00
parent 9f8ef43991
commit 6d1df55bf3

View file

@ -3479,6 +3479,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
ret = STATUS_INFO_LENGTH_MISMATCH; ret = STATUS_INFO_LENGTH_MISMATCH;
break; break;
} }
len = 0;
switch (sfti->Action) switch (sfti->Action)
{ {
@ -3489,7 +3490,6 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
ret = get_firmware_info(sfti, size, &len); ret = get_firmware_info(sfti, size, &len);
break; break;
default: default:
len = 0;
ret = STATUS_NOT_IMPLEMENTED; ret = STATUS_NOT_IMPLEMENTED;
FIXME("info_class SYSTEM_FIRMWARE_TABLE_INFORMATION action %d\n", sfti->Action); FIXME("info_class SYSTEM_FIRMWARE_TABLE_INFORMATION action %d\n", sfti->Action);
} }