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
ab7efe72
Commit
ab7efe72
authored
Mar 09, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix RtlGetSacl/DaclSecurityDescriptor for relative descriptors on 64-bit.
parent
c485996e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
sec.c
dlls/ntdll/sec.c
+16
-10
No files found.
dlls/ntdll/sec.c
View file @
ab7efe72
...
...
@@ -604,12 +604,15 @@ NTSTATUS WINAPI RtlGetDaclSecurityDescriptor(
if
(
(
*
lpbDaclPresent
=
(
SE_DACL_PRESENT
&
lpsd
->
Control
)
?
1
:
0
)
)
{
if
((
SE_SELF_RELATIVE
&
lpsd
->
Control
)
&&
lpsd
->
Dacl
)
*
pDacl
=
(
PACL
)
SELF_RELATIVE_FIELD
(
lpsd
,
Dacl
);
else
*
pDacl
=
lpsd
->
Dacl
;
if
(
lpsd
->
Control
&
SE_SELF_RELATIVE
)
{
SECURITY_DESCRIPTOR_RELATIVE
*
sdr
=
pSecurityDescriptor
;
if
(
sdr
->
Dacl
)
*
pDacl
=
(
PACL
)
SELF_RELATIVE_FIELD
(
sdr
,
Dacl
);
else
*
pDacl
=
NULL
;
}
else
*
pDacl
=
lpsd
->
Dacl
;
*
lpbDaclDefaulted
=
((
SE_DACL_DEFAULTED
&
lpsd
->
Control
)
?
1
:
0
)
;
*
lpbDaclDefaulted
=
(
lpsd
->
Control
&
SE_DACL_DEFAULTED
)
!=
0
;
}
else
{
...
...
@@ -673,12 +676,15 @@ NTSTATUS WINAPI RtlGetSaclSecurityDescriptor(
if
(
(
*
lpbSaclPresent
=
(
SE_SACL_PRESENT
&
lpsd
->
Control
)
?
1
:
0
)
)
{
if
((
SE_SELF_RELATIVE
&
lpsd
->
Control
)
&&
lpsd
->
Sacl
)
*
pSacl
=
(
PACL
)
SELF_RELATIVE_FIELD
(
lpsd
,
Sacl
);
else
*
pSacl
=
lpsd
->
Sacl
;
if
(
lpsd
->
Control
&
SE_SELF_RELATIVE
)
{
SECURITY_DESCRIPTOR_RELATIVE
*
sdr
=
pSecurityDescriptor
;
if
(
sdr
->
Sacl
)
*
pSacl
=
(
PACL
)
SELF_RELATIVE_FIELD
(
sdr
,
Sacl
);
else
*
pSacl
=
NULL
;
}
else
*
pSacl
=
lpsd
->
Sacl
;
*
lpbSaclDefaulted
=
((
SE_SACL_DEFAULTED
&
lpsd
->
Control
)
?
1
:
0
)
;
*
lpbSaclDefaulted
=
(
lpsd
->
Control
&
SE_SACL_DEFAULTED
)
!=
0
;
}
return
STATUS_SUCCESS
;
}
...
...
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