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
c9ae3c8a
Commit
c9ae3c8a
authored
May 25, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
May 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Ensure SECURITY_DESCRIPTOR fields are always initialized.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
parent
653d04d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wow64_private.h
dlls/wow64/wow64_private.h
+6
-6
No files found.
dlls/wow64/wow64_private.h
View file @
c9ae3c8a
...
...
@@ -146,17 +146,17 @@ static inline SECURITY_DESCRIPTOR *secdesc_32to64( SECURITY_DESCRIPTOR *out, con
out
->
Control
=
sd
->
Control
&
~
SE_SELF_RELATIVE
;
if
(
sd
->
Control
&
SE_SELF_RELATIVE
)
{
if
(
sd
->
Owner
)
out
->
Owner
=
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Owner
)
;
if
(
sd
->
Group
)
out
->
Group
=
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Group
)
;
if
((
sd
->
Control
&
SE_SACL_PRESENT
)
&&
sd
->
Sacl
)
out
->
Sacl
=
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Sacl
)
;
if
((
sd
->
Control
&
SE_DACL_PRESENT
)
&&
sd
->
Dacl
)
out
->
Dacl
=
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Dacl
)
;
out
->
Owner
=
sd
->
Owner
?
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Owner
)
:
NULL
;
out
->
Group
=
sd
->
Group
?
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Group
)
:
NULL
;
out
->
Sacl
=
((
sd
->
Control
&
SE_SACL_PRESENT
)
&&
sd
->
Sacl
)
?
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Sacl
)
:
NULL
;
out
->
Dacl
=
((
sd
->
Control
&
SE_DACL_PRESENT
)
&&
sd
->
Dacl
)
?
(
PSID
)((
BYTE
*
)
sd
+
sd
->
Dacl
)
:
NULL
;
}
else
{
out
->
Owner
=
ULongToPtr
(
sd
->
Owner
);
out
->
Group
=
ULongToPtr
(
sd
->
Group
);
if
(
sd
->
Control
&
SE_SACL_PRESENT
)
out
->
Sacl
=
ULongToPtr
(
sd
->
Sacl
)
;
if
(
sd
->
Control
&
SE_DACL_PRESENT
)
out
->
Dacl
=
ULongToPtr
(
sd
->
Dacl
)
;
out
->
Sacl
=
(
sd
->
Control
&
SE_SACL_PRESENT
)
?
ULongToPtr
(
sd
->
Sacl
)
:
NULL
;
out
->
Dacl
=
(
sd
->
Control
&
SE_DACL_PRESENT
)
?
ULongToPtr
(
sd
->
Dacl
)
:
NULL
;
}
return
out
;
}
...
...
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