advapi32/tests: Fix RegQueryValueExA test for win9x and ME.
This commit is contained in:
parent
ce0da3e75f
commit
402f4e9c74
|
@ -369,13 +369,20 @@ static void test_query_value_ex(void)
|
|||
size = 0xdeadbeef;
|
||||
ret = RegQueryValueExA(HKEY_CLASSES_ROOT, "Nonexistent Value", NULL, &type, NULL, &size);
|
||||
ok(ret == ERROR_FILE_NOT_FOUND, "expected ERROR_FILE_NOT_FOUND, got %d\n", ret);
|
||||
ok(size == 0, "size should have been set to 0 instead of %d\n", size);
|
||||
/* the type parameter is cleared on Win9x, but is set to a random value on
|
||||
* NT, so don't do this test there */
|
||||
* NT, so don't do that test there. The size parameter is left untouched on Win9x
|
||||
* but cleared on NT+, this can be tested on all platforms.
|
||||
*/
|
||||
if (GetVersion() & 0x80000000)
|
||||
{
|
||||
ok(type == 0, "type should have been set to 0 instead of 0x%x\n", type);
|
||||
ok(size == 0xdeadbeef, "size should have been left untouched (0xdeadbeef)\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
trace("test_query_value_ex: type set to: 0x%08x\n", type);
|
||||
ok(size == 0, "size should have been set to 0 instead of %d\n", size);
|
||||
}
|
||||
|
||||
size = sizeof(buffer);
|
||||
ret = RegQueryValueExA(HKEY_CLASSES_ROOT, "Nonexistent Value", NULL, &type, buffer, &size);
|
||||
|
|
Loading…
Reference in New Issue