[PATCH 2/5] dlls/kernel32/tests: fully allocate SYSTEM_FIRMWARE_TABLE_INFORMATION
Eric Pouech
eric.pouech at gmail.com
Thu Feb 17 04:16:29 CST 2022
this prevents mingw-gcc version 11 to generate warnings (-Warray-bounds)
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/kernel32/tests/version.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/version.c b/dlls/kernel32/tests/version.c
index ad87bb38a16..ec74c920960 100644
--- a/dlls/kernel32/tests/version.c
+++ b/dlls/kernel32/tests/version.c
@@ -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;
More information about the wine-devel
mailing list