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
c7f0777f
Commit
c7f0777f
authored
Jun 15, 2017
by
Thomas Faber
Committed by
Alexandre Julliard
Jun 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Properly restore privileges in test_AdjustTokenPrivileges.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0286b11c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
security.c
dlls/advapi32/tests/security.c
+3
-2
No files found.
dlls/advapi32/tests/security.c
View file @
c7f0777f
...
...
@@ -6081,7 +6081,7 @@ static void test_default_dacl_owner_sid(void)
static
void
test_AdjustTokenPrivileges
(
void
)
{
TOKEN_PRIVILEGES
tp
,
prev
;
TOKEN_PRIVILEGES
tp
;
HANDLE
token
;
DWORD
len
;
LUID
luid
;
...
...
@@ -6109,7 +6109,8 @@ static void test_AdjustTokenPrivileges(void)
tp
.
PrivilegeCount
=
1
;
tp
.
Privileges
[
0
].
Luid
=
luid
;
tp
.
Privileges
[
0
].
Attributes
=
0
;
AdjustTokenPrivileges
(
token
,
FALSE
,
&
tp
,
sizeof
(
TOKEN_PRIVILEGES
),
&
prev
,
NULL
);
ret
=
AdjustTokenPrivileges
(
token
,
FALSE
,
&
tp
,
sizeof
(
TOKEN_PRIVILEGES
),
NULL
,
NULL
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
CloseHandle
(
token
);
}
...
...
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