advapi32: Do not use invalid pSD value (Coverity).

This commit is contained in:
Marcus Meissner 2012-12-27 20:00:27 +01:00 committed by Alexandre Julliard
parent ab6369231f
commit 7750dd8ec4
1 changed files with 1 additions and 1 deletions

View File

@ -1853,7 +1853,7 @@ static void test_sequence(void)
/* Test using QueryServiceObjectSecurity to obtain security information */
SetLastError(0xdeadbeef);
bret = pQueryServiceObjectSecurity(svc_handle, DACL_SECURITY_INFORMATION, pSD, 0, &n1);
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);