Commit 8efa9f76 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 81256874
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment