Module: wine Branch: master Commit: 0c85e59beac3a71ffa8df9d2a3bdc9e56299ff6a URL: https://source.winehq.org/git/wine.git/?a=commit;h=0c85e59beac3a71ffa8df9d2a...
Author: Eric Pouech eric.pouech@gmail.com Date: Thu Feb 17 11:16:23 2022 +0100
ntdll/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
---
dlls/ntdll/tests/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c index e9d42127c3e..d6b323dd9d7 100644 --- a/dlls/ntdll/tests/info.c +++ b/dlls/ntdll/tests/info.c @@ -1461,7 +1461,7 @@ static void test_query_firmware(void) NTSTATUS status; SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti;
- sfti = HeapAlloc(GetProcessHeap(), 0, min_sfti_len); + sfti = HeapAlloc(GetProcessHeap(), 0, sizeof(*sfti)); ok(!!sfti, "Failed to allocate memory\n");
sfti->ProviderSignature = 0;