Alex Henrie : advapi32/tests: Accept more broken values in another RegEnumValue name overflow test.

Alexandre Julliard julliard at winehq.org
Wed Dec 15 14:25:57 CST 2021


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Tue Dec 14 23:14:11 2021 -0700

advapi32/tests: Accept more broken values in another RegEnumValue name overflow test.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/tests/registry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index c4f63c6cd27..ca371f73d65 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -534,7 +534,8 @@ static void test_enum_value(void)
     res = RegEnumValueA( test_key, 0, value, &val_count, NULL, &type, (LPBYTE)data, &data_count );
     ok( res == ERROR_MORE_DATA, "expected ERROR_MORE_DATA, got %d\n", res );
     ok( val_count == 2, "val_count set to %d\n", val_count );
-    ok( data_count == 7 || broken( data_count == 8 ), "data_count set to %d instead of 7\n", data_count );
+    /* Chinese, Japanese, and Korean editions of Windows 10 sometimes set data_count to a higher value */
+    ok( data_count == 7 || broken( data_count > 7 ), "data_count set to %d instead of 7\n", data_count );
     ok( type == REG_SZ, "type %d is not REG_SZ\n", type );
     ok( !strcmp( value, "xxxxxxxxxx" ), "value set to '%s'\n", value );
     ok( !strcmp( data, "xxxxxxxxxx" ), "data set to '%s'\n", data );




More information about the wine-cvs mailing list