Module: wine Branch: master Commit: 608ac1e828f65130a7ac36794f7f7948206a1708 URL: http://source.winehq.org/git/wine.git/?a=commit;h=608ac1e828f65130a7ac36794f...
Author: Rob Shearman rob@codeweavers.com Date: Mon Feb 18 19:39:19 2008 +0000
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.
---
dlls/advapi32/tests/security.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 1cb3130..5086cb7 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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 */