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
6efa903c
Commit
6efa903c
authored
Jan 22, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement SetEntriesInAclW.
parent
21e2caa4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
247 additions
and
6 deletions
+247
-6
security.c
dlls/advapi32/security.c
+245
-2
security.c
dlls/advapi32/tests/security.c
+2
-4
No files found.
dlls/advapi32/security.c
View file @
6efa903c
This diff is collapsed.
Click to expand it.
dlls/advapi32/tests/security.c
View file @
6efa903c
...
...
@@ -2027,13 +2027,13 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
ptstrName
=
(
LPWSTR
)
EveryoneSid
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
ok
(
res
==
ERROR_SUCCESS
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
todo_wine
ok
(
NewAcl
!=
NULL
,
"returned acl was NULL
\n
"
);
LocalFree
(
NewAcl
);
ExplicitAccess
.
Trustee
.
TrusteeForm
=
TRUSTEE_IS_USER
;
ExplicitAccess
.
Trustee
.
ptstrName
=
(
LPWSTR
)
wszEveryone
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
todo_wine
ok
(
res
==
ERROR_SUCCESS
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
todo_wine
ok
(
NewAcl
!=
NULL
,
"returned acl was NULL
\n
"
);
...
...
@@ -2041,7 +2041,6 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
TrusteeForm
=
TRUSTEE_BAD_FORM
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
todo_wine
ok
(
res
==
ERROR_INVALID_PARAMETER
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
ok
(
NewAcl
==
NULL
,
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
LocalFree
(
NewAcl
);
...
...
@@ -2049,7 +2048,6 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
TrusteeForm
=
TRUSTEE_IS_USER
;
ExplicitAccess
.
Trustee
.
MultipleTrusteeOperation
=
TRUSTEE_IS_IMPERSONATE
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
todo_wine
ok
(
res
==
ERROR_INVALID_PARAMETER
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
ok
(
NewAcl
==
NULL
,
"returned acl wasn't NULL: %p
\n
"
,
NewAcl
);
LocalFree
(
NewAcl
);
...
...
@@ -2057,6 +2055,7 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
MultipleTrusteeOperation
=
NO_MULTIPLE_TRUSTEE
;
ExplicitAccess
.
grfAccessMode
=
SET_ACCESS
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
todo_wine
ok
(
res
==
ERROR_SUCCESS
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
todo_wine
ok
(
NewAcl
!=
NULL
,
"returned acl was NULL
\n
"
);
...
...
@@ -2067,7 +2066,6 @@ static void test_SetEntriesInAcl(void)
ExplicitAccess
.
Trustee
.
ptstrName
=
(
LPWSTR
)
UsersSid
;
res
=
pSetEntriesInAclW
(
1
,
&
ExplicitAccess
,
OldAcl
,
&
NewAcl
);
ok
(
res
==
ERROR_SUCCESS
,
"SetEntriesInAclW failed: %u
\n
"
,
res
);
todo_wine
ok
(
NewAcl
!=
NULL
,
"returned acl was NULL
\n
"
);
LocalFree
(
NewAcl
);
...
...
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