Francois Gouget : advapi32/tests: Fix an uninitialized variable check in test_performance_keys().

Alexandre Julliard julliard at winehq.org
Mon Aug 16 18:07:24 CDT 2021


Module: wine
Branch: master
Commit: 9572c20812b4004e6166fca6aea47e07a56966c1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9572c20812b4004e6166fca6aea47e07a56966c1

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Aug 16 18:10:50 2021 +0200

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

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 fb3d5a34f51..5ed220095bb 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);




More information about the wine-cvs mailing list