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
8188ce6f
Commit
8188ce6f
authored
Sep 27, 2007
by
Mikolaj Zalewski
Committed by
Alexandre Julliard
Sep 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Make ConvertStringSecurityDescriptorToSecurityDescriptor write the ACL.
parent
611f57bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
security.c
dlls/advapi32/security.c
+25
-1
No files found.
dlls/advapi32/security.c
View file @
8188ce6f
...
@@ -3239,6 +3239,8 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
...
@@ -3239,6 +3239,8 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
DWORD
val
;
DWORD
val
;
DWORD
sidlen
;
DWORD
sidlen
;
DWORD
length
=
sizeof
(
ACL
);
DWORD
length
=
sizeof
(
ACL
);
DWORD
acesize
=
0
;
DWORD
acecount
=
0
;
PACCESS_ALLOWED_ACE
pAce
=
NULL
;
/* pointer to current ACE */
PACCESS_ALLOWED_ACE
pAce
=
NULL
;
/* pointer to current ACE */
TRACE
(
"%s
\n
"
,
debugstr_w
(
StringAcl
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
StringAcl
));
...
@@ -3308,10 +3310,32 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
...
@@ -3308,10 +3310,32 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
goto
lerr
;
goto
lerr
;
StringAcl
++
;
StringAcl
++
;
length
+=
sizeof
(
ACCESS_ALLOWED_ACE
)
-
sizeof
(
DWORD
)
+
sidlen
;
acesize
=
sizeof
(
ACCESS_ALLOWED_ACE
)
-
sizeof
(
DWORD
)
+
sidlen
;
length
+=
acesize
;
if
(
pAce
)
{
pAce
->
Header
.
AceSize
=
acesize
;
pAce
=
(
PACCESS_ALLOWED_ACE
)((
LPBYTE
)
pAce
+
acesize
);
}
acecount
++
;
}
}
*
cBytes
=
length
;
*
cBytes
=
length
;
if
(
length
>
0xffff
)
{
ERR
(
"ACL too large
\n
"
);
goto
lerr
;
}
if
(
pAcl
)
{
pAcl
->
AclRevision
=
ACL_REVISION
;
pAcl
->
Sbz1
=
0
;
pAcl
->
AclSize
=
length
;
pAcl
->
AceCount
=
acecount
++
;
pAcl
->
Sbz2
=
0
;
}
return
TRUE
;
return
TRUE
;
lerr:
lerr:
...
...
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