Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
33b8ec1c
Commit
33b8ec1c
authored
Mar 29, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add check to see if ImpersonateSelf is implemented.
parent
333de16f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
security.c
dlls/advapi32/tests/security.c
+7
-1
No files found.
dlls/advapi32/tests/security.c
View file @
33b8ec1c
...
...
@@ -1608,10 +1608,16 @@ static void test_impersonation_level(void)
pDuplicateTokenEx
=
(
fnDuplicateTokenEx
)
GetProcAddress
(
hmod
,
"DuplicateTokenEx"
);
if
(
!
pDuplicateTokenEx
)
{
skip
(
"DuplicateTokenEx
\n
"
);
skip
(
"DuplicateTokenEx
is not available
\n
"
);
return
;
}
SetLastError
(
0xdeadbeef
);
ret
=
ImpersonateSelf
(
SecurityAnonymous
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
))
{
skip
(
"ImpersonateSelf is not implemented
\n
"
);
return
;
}
ok
(
ret
,
"ImpersonateSelf(SecurityAnonymous) failed with error %d
\n
"
,
GetLastError
());
ret
=
OpenThreadToken
(
GetCurrentThread
(),
TOKEN_QUERY
|
TOKEN_ADJUST_PRIVILEGES
|
TOKEN_QUERY_SOURCE
|
TOKEN_IMPERSONATE
|
TOKEN_ADJUST_DEFAULT
,
TRUE
,
&
Token
);
ok
(
!
ret
,
"OpenThreadToken should have failed
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment