[PATCH] advapi32/tests: Fix an uninitialized variable check in test_performance_keys().

Francois Gouget fgouget at codeweavers.com
Mon Aug 16 11:10:50 CDT 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
This should fix the failures on cw-gtx560-wow64, cw-rx460-wow64
and fg-deb64-wow64:
https://test.winehq.org/data/patterns.html#advapi32:registry
---
 dlls/advapi32/tests/registry.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 5fac9aa429f..a6e48d7840f 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -3867,6 +3867,7 @@ static void test_performance_keys(void)
         ret = RegSetValueA(keys[i], "Global", REG_SZ, "dummy", 5);
         ok(ret == ERROR_INVALID_HANDLE, "got %u\n", ret);
 
+        key_count = 0x900ddeed;
         ret = RegQueryInfoKeyA(keys[i], NULL, NULL, NULL, &key_count, NULL,
                 NULL, &value_count, NULL, NULL, NULL, NULL);
         todo_wine ok(!ret, "got %u\n", ret);
-- 
2.20.1



More information about the wine-devel mailing list