Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
af7062a9
Commit
af7062a9
authored
Jun 07, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid test failures when running as an unprivileged user.
parent
28e80add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
file.c
dlls/kernel32/tests/file.c
+2
-1
No files found.
dlls/kernel32/tests/file.c
View file @
af7062a9
...
...
@@ -3504,7 +3504,8 @@ static void test_SetFileValidData(void)
if
(
!
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_ADJUST_PRIVILEGES
,
&
token
)
||
!
LookupPrivilegeValue
(
NULL
,
SE_MANAGE_VOLUME_NAME
,
&
privs
.
Privileges
[
0
].
Luid
)
||
!
AdjustTokenPrivileges
(
token
,
FALSE
,
&
privs
,
sizeof
(
privs
),
NULL
,
NULL
))
!
AdjustTokenPrivileges
(
token
,
FALSE
,
&
privs
,
sizeof
(
privs
),
NULL
,
NULL
)
||
GetLastError
()
==
ERROR_NOT_ALL_ASSIGNED
)
{
win_skip
(
"cannot enable SE_MANAGE_VOLUME_NAME privilege
\n
"
);
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