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
b3738d3b
Commit
b3738d3b
authored
Jun 28, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Jun 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward RtlAddAccess* to add_access_ace.
parent
996bcc5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
60 deletions
+8
-60
sec.c
dlls/ntdll/sec.c
+8
-60
No files found.
dlls/ntdll/sec.c
View file @
b3738d3b
...
...
@@ -1178,36 +1178,10 @@ NTSTATUS WINAPI RtlAddAccessAllowedAceEx(
IN
DWORD
AccessMask
,
IN
PSID
pSid
)
{
DWORD
dwLengthSid
;
ACCESS_ALLOWED_ACE
*
pAaAce
;
DWORD
dwSpaceLeft
;
TRACE
(
"(%p,0x%08lx,0x%08lx,%p)
\n
"
,
pAcl
,
dwAceRevision
,
AccessMask
,
pSid
);
if
(
!
RtlValidSid
(
pSid
))
return
STATUS_INVALID_SID
;
if
(
!
RtlValidAcl
(
pAcl
))
return
STATUS_INVALID_ACL
;
dwLengthSid
=
RtlLengthSid
(
pSid
);
if
(
!
RtlFirstFreeAce
(
pAcl
,
(
PACE_HEADER
*
)
&
pAaAce
))
return
STATUS_INVALID_ACL
;
if
(
!
pAaAce
)
return
STATUS_ALLOTTED_SPACE_EXCEEDED
;
dwSpaceLeft
=
(
DWORD
)
pAcl
+
pAcl
->
AclSize
-
(
DWORD
)
pAaAce
;
if
(
dwSpaceLeft
<
sizeof
(
*
pAaAce
)
-
sizeof
(
pAaAce
->
SidStart
)
+
dwLengthSid
)
return
STATUS_ALLOTTED_SPACE_EXCEEDED
;
pAaAce
->
Header
.
AceType
=
ACCESS_ALLOWED_ACE_TYPE
;
pAaAce
->
Header
.
AceFlags
=
AceFlags
;
pAaAce
->
Header
.
AceSize
=
sizeof
(
*
pAaAce
)
-
sizeof
(
pAaAce
->
SidStart
)
+
dwLengthSid
;
pAaAce
->
Mask
=
AccessMask
;
pAcl
->
AceCount
++
;
RtlCopySid
(
dwLengthSid
,
(
PSID
)
&
pAaAce
->
SidStart
,
pSid
);
return
STATUS_SUCCESS
;
TRACE
(
"(%p,0x%08lx,0x%08lx,%p)
\n
"
,
pAcl
,
dwAceRevision
,
AccessMask
,
pSid
);
return
add_access_ace
(
pAcl
,
dwAceRevision
,
AceFlags
,
AccessMask
,
pSid
,
ACCESS_ALLOWED_ACE_TYPE
);
}
/******************************************************************************
...
...
@@ -1232,36 +1206,10 @@ NTSTATUS WINAPI RtlAddAccessDeniedAceEx(
IN
DWORD
AccessMask
,
IN
PSID
pSid
)
{
DWORD
dwLengthSid
;
DWORD
dwSpaceLeft
;
ACCESS_DENIED_ACE
*
pAdAce
;
TRACE
(
"(%p,0x%08lx,0x%08lx,%p)
\n
"
,
pAcl
,
dwAceRevision
,
AccessMask
,
pSid
);
if
(
!
RtlValidSid
(
pSid
))
return
STATUS_INVALID_SID
;
if
(
!
RtlValidAcl
(
pAcl
))
return
STATUS_INVALID_ACL
;
dwLengthSid
=
RtlLengthSid
(
pSid
);
if
(
!
RtlFirstFreeAce
(
pAcl
,
(
PACE_HEADER
*
)
&
pAdAce
))
return
STATUS_INVALID_ACL
;
if
(
!
pAdAce
)
return
STATUS_ALLOTTED_SPACE_EXCEEDED
;
dwSpaceLeft
=
(
DWORD
)
pAcl
+
pAcl
->
AclSize
-
(
DWORD
)
pAdAce
;
if
(
dwSpaceLeft
<
sizeof
(
*
pAdAce
)
-
sizeof
(
pAdAce
->
SidStart
)
+
dwLengthSid
)
return
STATUS_ALLOTTED_SPACE_EXCEEDED
;
pAdAce
->
Header
.
AceType
=
ACCESS_DENIED_ACE_TYPE
;
pAdAce
->
Header
.
AceFlags
=
AceFlags
;
pAdAce
->
Header
.
AceSize
=
sizeof
(
*
pAdAce
)
-
sizeof
(
pAdAce
->
SidStart
)
+
dwLengthSid
;
pAdAce
->
Mask
=
AccessMask
;
pAcl
->
AceCount
++
;
RtlCopySid
(
dwLengthSid
,
(
PSID
)
&
pAdAce
->
SidStart
,
pSid
);
return
STATUS_SUCCESS
;
TRACE
(
"(%p,0x%08lx,0x%08lx,%p)
\n
"
,
pAcl
,
dwAceRevision
,
AccessMask
,
pSid
);
return
add_access_ace
(
pAcl
,
dwAceRevision
,
AceFlags
,
AccessMask
,
pSid
,
ACCESS_DENIED_ACE_TYPE
);
}
/**************************************************************************
...
...
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