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
3a33ff7d
Commit
3a33ff7d
authored
Jun 16, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix self-relative security descriptor creation for 64-bit.
parent
ac5002ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
security.c
dlls/advapi32/security.c
+8
-8
No files found.
dlls/advapi32/security.c
View file @
3a33ff7d
...
...
@@ -54,7 +54,7 @@ static BYTE ParseAceStringType(LPCWSTR* StringAcl);
static
DWORD
ParseAceStringRights
(
LPCWSTR
*
StringAcl
);
static
BOOL
ParseStringSecurityDescriptorToSecurityDescriptor
(
LPCWSTR
StringSecurityDescriptor
,
SECURITY_DESCRIPTOR
*
SecurityDescriptor
,
SECURITY_DESCRIPTOR
_RELATIVE
*
SecurityDescriptor
,
LPDWORD
cBytes
);
static
DWORD
ParseAclStringFlags
(
LPCWSTR
*
StringAcl
);
...
...
@@ -4060,7 +4060,7 @@ lerr:
*/
static
BOOL
ParseStringSecurityDescriptorToSecurityDescriptor
(
LPCWSTR
StringSecurityDescriptor
,
SECURITY_DESCRIPTOR
*
SecurityDescriptor
,
SECURITY_DESCRIPTOR
_RELATIVE
*
SecurityDescriptor
,
LPDWORD
cBytes
)
{
BOOL
bret
=
FALSE
;
...
...
@@ -4073,7 +4073,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
*
cBytes
=
sizeof
(
SECURITY_DESCRIPTOR
);
if
(
SecurityDescriptor
)
lpNext
=
(
(
LPBYTE
)
SecurityDescriptor
)
+
sizeof
(
SECURITY_DESCRIPTOR
);
lpNext
=
(
LPBYTE
)(
SecurityDescriptor
+
1
);
while
(
*
StringSecurityDescriptor
)
{
...
...
@@ -4111,7 +4111,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if
(
SecurityDescriptor
)
{
SecurityDescriptor
->
Owner
=
(
PSID
)(
lpNext
-
(
LPBYTE
)
SecurityDescriptor
)
;
SecurityDescriptor
->
Owner
=
lpNext
-
(
LPBYTE
)
SecurityDescriptor
;
lpNext
+=
bytes
;
/* Advance to next token */
}
...
...
@@ -4129,7 +4129,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if
(
SecurityDescriptor
)
{
SecurityDescriptor
->
Group
=
(
PSID
)(
lpNext
-
(
LPBYTE
)
SecurityDescriptor
)
;
SecurityDescriptor
->
Group
=
lpNext
-
(
LPBYTE
)
SecurityDescriptor
;
lpNext
+=
bytes
;
/* Advance to next token */
}
...
...
@@ -4149,7 +4149,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if
(
SecurityDescriptor
)
{
SecurityDescriptor
->
Control
|=
SE_DACL_PRESENT
|
flags
;
SecurityDescriptor
->
Dacl
=
(
PACL
)(
lpNext
-
(
LPBYTE
)
SecurityDescriptor
)
;
SecurityDescriptor
->
Dacl
=
lpNext
-
(
LPBYTE
)
SecurityDescriptor
;
lpNext
+=
bytes
;
/* Advance to next token */
}
...
...
@@ -4169,7 +4169,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if
(
SecurityDescriptor
)
{
SecurityDescriptor
->
Control
|=
SE_SACL_PRESENT
|
flags
;
SecurityDescriptor
->
Sacl
=
(
PACL
)(
lpNext
-
(
LPBYTE
)
SecurityDescriptor
)
;
SecurityDescriptor
->
Sacl
=
lpNext
-
(
LPBYTE
)
SecurityDescriptor
;
lpNext
+=
bytes
;
/* Advance to next token */
}
...
...
@@ -4265,7 +4265,7 @@ BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(
psd
->
Control
|=
SE_SELF_RELATIVE
;
if
(
!
ParseStringSecurityDescriptorToSecurityDescriptor
(
StringSecurityDescriptor
,
psd
,
&
cBytes
))
(
SECURITY_DESCRIPTOR_RELATIVE
*
)
psd
,
&
cBytes
))
{
LocalFree
(
psd
);
goto
lend
;
...
...
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