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:
parent
0c85e59bea
commit
cb48c6dca4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue