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
9c29e421
Commit
9c29e421
authored
Mar 16, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add tests for kernel objects accessed with 0 and ACCESS_SYSTEM_SECURITY.
parent
ef1f0941
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
security.c
dlls/advapi32/tests/security.c
+20
-0
No files found.
dlls/advapi32/tests/security.c
View file @
9c29e421
...
...
@@ -4060,6 +4060,26 @@ todo_wine {
ok
(
status
==
1
,
"expected 1, got %d
\n
"
,
status
);
ok
(
granted
==
mapping
->
GenericAll
,
"expected %#x, got %#x
\n
"
,
mapping
->
GenericAll
,
granted
);
}
priv_set_len
=
sizeof
(
priv_set
);
granted
=
0xdeadbeef
;
status
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
AccessCheck
(
sd
,
token
,
0
,
mapping
,
&
priv_set
,
&
priv_set_len
,
&
granted
,
&
status
);
todo_wine
{
ok
(
ret
,
"AccessCheck error %d
\n
"
,
GetLastError
());
ok
(
status
==
0
||
broken
(
status
==
1
)
/* NT4 */
,
"expected 0, got %d
\n
"
,
status
);
ok
(
granted
==
0
||
broken
(
granted
==
mapping
->
GenericRead
)
/* NT4 */
,
"expected 0, got %#x
\n
"
,
granted
);
}
priv_set_len
=
sizeof
(
priv_set
);
granted
=
0xdeadbeef
;
status
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
AccessCheck
(
sd
,
token
,
ACCESS_SYSTEM_SECURITY
,
mapping
,
&
priv_set
,
&
priv_set_len
,
&
granted
,
&
status
);
todo_wine
{
ok
(
ret
,
"AccessCheck error %d
\n
"
,
GetLastError
());
ok
(
status
==
0
,
"expected 0, got %d
\n
"
,
status
);
ok
(
granted
==
0
,
"expected 0, got %#x
\n
"
,
granted
);
}
HeapFree
(
GetProcessHeap
(),
0
,
sd
);
}
...
...
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