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
a006b060
Commit
a006b060
authored
Oct 16, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix the return code from RtlSetDaclSecurityDescriptor when daclpresent is FALSE.
parent
d1a3e2ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
security.c
dlls/advapi32/tests/security.c
+0
-1
sec.c
dlls/ntdll/sec.c
+3
-2
No files found.
dlls/advapi32/tests/security.c
View file @
a006b060
...
...
@@ -784,7 +784,6 @@ static void test_AccessCheck(void)
/* sd with no dacl present */
ret
=
SetSecurityDescriptorDacl
(
SecurityDescriptor
,
FALSE
,
NULL
,
FALSE
);
todo_wine
ok
(
ret
,
"SetSecurityDescriptorDacl failed with error %d
\n
"
,
GetLastError
());
ret
=
AccessCheck
(
SecurityDescriptor
,
Token
,
KEY_READ
,
&
Mapping
,
PrivSet
,
&
PrivSetLen
,
&
Access
,
&
AccessStatus
);
...
...
dlls/ntdll/sec.c
View file @
a006b060
...
...
@@ -626,8 +626,9 @@ NTSTATUS WINAPI RtlSetDaclSecurityDescriptor (
return
STATUS_INVALID_SECURITY_DESCR
;
if
(
!
daclpresent
)
{
lpsd
->
Control
&=
~
SE_DACL_PRESENT
;
return
TRUE
;
{
lpsd
->
Control
&=
~
SE_DACL_PRESENT
;
return
STATUS_SUCCESS
;
}
lpsd
->
Control
|=
SE_DACL_PRESENT
;
...
...
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