kernel32/tests: Fully allocate SYSTEM_FIRMWARE_TABLE_INFORMATION.

This prevents a warning on mingw-gcc version 11 (-Warray-bounds).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-17 11:16:29 +01:00 committed by Alexandre Julliard
parent 0c85e59bea
commit cb48c6dca4
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ static void test_GetSystemFirmwareTable(void)
return;
}
sfti = HeapAlloc(GetProcessHeap(), 0, min_sfti_len);
sfti = HeapAlloc(GetProcessHeap(), 0, sizeof(*sfti));
ok(!!sfti, "Failed to allocate memory\n");
sfti->ProviderSignature = RSMB;
sfti->Action = SystemFirmwareTable_Get;