Eric Pouech : kernel32/tests: Fully allocate SYSTEM_FIRMWARE_TABLE_INFORMATION.
Alexandre Julliard
julliard at winehq.org
Thu Feb 17 15:34:00 CST 2022
Module: wine
Branch: master
Commit: cb48c6dca4b207a7b4ea34a7e0a092777cce847d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cb48c6dca4b207a7b4ea34a7e0a092777cce847d
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Thu Feb 17 11:16:29 2022 +0100
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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-cvs
mailing list