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:
parent
9ad684b426
commit
608ac1e828
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue