advapi32/tests: RegSetValueExA() should succeed when given a NULL data pointer.

This used to fail on Windows 95 but we don't want to allow such
behavior anymore.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-08-16 17:46:28 +02:00 committed by Alexandre Julliard
parent fb11008bca
commit ba020f42ba
1 changed files with 2 additions and 2 deletions

View File

@ -491,9 +491,9 @@ static void test_enum_value(void)
else
ok( !res, "RegSetValueExA returned %d\n", res );
res = RegSetValueExA( test_key, "Test", 0, REG_EXPAND_SZ, NULL, 0 );
ok( ERROR_SUCCESS == res || ERROR_INVALID_PARAMETER == res, "RegSetValueExA returned %d\n", res );
ok( ERROR_SUCCESS == res, "RegSetValueExA returned %d\n", res );
res = RegSetValueExA( test_key, "Test", 0, REG_BINARY, NULL, 0 );
ok( ERROR_SUCCESS == res || ERROR_INVALID_PARAMETER == res, "RegSetValueExA returned %d\n", res );
ok( ERROR_SUCCESS == res, "RegSetValueExA returned %d\n", res );
/* test reading the value and data without setting them */
val_count = 20;