advapi32/tests: Fix test failures on older Windows versions.
This commit is contained in:
parent
6de3e39aa4
commit
2c0b470019
|
@ -1856,7 +1856,9 @@ static void test_sequence(void)
|
|||
bret = pQueryServiceObjectSecurity(svc_handle, DACL_SECURITY_INFORMATION, NULL, 0, &n1);
|
||||
error = GetLastError();
|
||||
ok(!bret, "Expected QueryServiceObjectSecurity to fail: result %d\n", bret);
|
||||
ok(error == ERROR_INSUFFICIENT_BUFFER, "Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", error);
|
||||
ok(error == ERROR_INSUFFICIENT_BUFFER || broken(error == ERROR_INVALID_ADDRESS),
|
||||
"Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", error);
|
||||
if (error == ERROR_INVALID_ADDRESS) n1 = 1024;
|
||||
pSD = LocalAlloc(0, n1);
|
||||
bret = pQueryServiceObjectSecurity(svc_handle, DACL_SECURITY_INFORMATION, pSD, n1, &n2);
|
||||
ok(bret, "Expected QueryServiceObjectSecurity to succeed: result %d\n", bret);
|
||||
|
|
Loading…
Reference in New Issue