Commit cb48c6dc authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

kernel32/tests: Fully allocate SYSTEM_FIRMWARE_TABLE_INFORMATION.

This prevents a warning on mingw-gcc version 11 (-Warray-bounds). Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 0c85e59b
...@@ -715,7 +715,7 @@ static void test_GetSystemFirmwareTable(void) ...@@ -715,7 +715,7 @@ static void test_GetSystemFirmwareTable(void)
return; return;
} }
sfti = HeapAlloc(GetProcessHeap(), 0, min_sfti_len); sfti = HeapAlloc(GetProcessHeap(), 0, sizeof(*sfti));
ok(!!sfti, "Failed to allocate memory\n"); ok(!!sfti, "Failed to allocate memory\n");
sfti->ProviderSignature = RSMB; sfti->ProviderSignature = RSMB;
sfti->Action = SystemFirmwareTable_Get; sfti->Action = SystemFirmwareTable_Get;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment