advapi32: Fix the AccessCheck tests so that the ACCESS_SYSTEM_SECURITY test now runs (when the user has the Security privilege).

Duplicate the token at SecurityImpersonation impersonation level instead
of SecurityIdentification, otherwise the call to RtlAdjustPrivilege
fails on Windows.
This commit is contained in:
Rob Shearman 2008-02-18 19:39:19 +00:00 committed by Alexandre Julliard
parent 9ad684b426
commit 608ac1e828
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ static void test_AccessCheck(void)
pRtlAdjustPrivilege(SE_SECURITY_PRIVILEGE, FALSE, TRUE, &Enabled);
res = DuplicateToken(ProcessToken, SecurityIdentification, &Token);
res = DuplicateToken(ProcessToken, SecurityImpersonation, &Token);
ok(res, "DuplicateToken failed with error %d\n", GetLastError());
/* SD without owner/group */