mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
advapi32: Fix a few test failures in Vista.
This commit is contained in:
parent
5512dacf8f
commit
83b21a6d5b
@ -348,20 +348,24 @@ static void test_SystemFunction005(void)
|
||||
out.Length = 0;
|
||||
out.MaximumLength = 0;
|
||||
r = pSystemFunction005(&out, &key, &res);
|
||||
ok(r == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", r);
|
||||
ok(r == STATUS_SUCCESS ||
|
||||
r == STATUS_INVALID_PARAMETER_1, /* Vista */
|
||||
"Expected STATUS_SUCCESS or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
|
||||
|
||||
ok(res.Length == in.Length, "Length wrong\n");
|
||||
ok(!memcmp(res.Buffer, in.Buffer, in.Length), "data wrong\n");
|
||||
|
||||
res.MaximumLength = 0;
|
||||
r = pSystemFunction005(&out, &key, &res);
|
||||
ok(r == STATUS_BUFFER_TOO_SMALL,
|
||||
"Expected STATUS_BUFFER_TOO_SMALL, got %08x\n", r);
|
||||
ok(r == STATUS_BUFFER_TOO_SMALL ||
|
||||
r == STATUS_INVALID_PARAMETER_1, /* Vista */
|
||||
"Expected STATUS_BUFFER_TOO_SMALL or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
|
||||
|
||||
key.Length = 1;
|
||||
r = pSystemFunction005(&out, &key, &res);
|
||||
ok(r == STATUS_UNKNOWN_REVISION,
|
||||
"Expected STATUS_UNKNOWN_REVISION, got %08x\n", r);
|
||||
ok(r == STATUS_UNKNOWN_REVISION ||
|
||||
r == STATUS_INVALID_PARAMETER_1, /* Vista */
|
||||
"Expected STATUS_UNKNOWN_REVISION or STATUS_INVALID_PARAMETER_1, got %08x\n", r);
|
||||
|
||||
key.Length = 0;
|
||||
r = pSystemFunction005(&out, &key, &res);
|
||||
|
Loading…
Reference in New Issue
Block a user