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
104a0f54
Commit
104a0f54
authored
Oct 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix lookup of the current user SID in SetEntriesInAclW.
parent
f7bd47f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
security.c
dlls/advapi32/security.c
+9
-2
No files found.
dlls/advapi32/security.c
View file @
104a0f54
...
@@ -3507,8 +3507,15 @@ DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
...
@@ -3507,8 +3507,15 @@ DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
DWORD
sid_size
=
FIELD_OFFSET
(
SID
,
SubAuthority
[
SID_MAX_SUB_AUTHORITIES
]);
DWORD
sid_size
=
FIELD_OFFSET
(
SID
,
SubAuthority
[
SID_MAX_SUB_AUTHORITIES
]);
DWORD
domain_size
=
MAX_COMPUTERNAME_LENGTH
+
1
;
DWORD
domain_size
=
MAX_COMPUTERNAME_LENGTH
+
1
;
SID_NAME_USE
use
;
SID_NAME_USE
use
;
if
(
strcmpW
(
pEntries
[
i
].
Trustee
.
ptstrName
,
CURRENT_USER
)
&&
if
(
!
strcmpW
(
pEntries
[
i
].
Trustee
.
ptstrName
,
CURRENT_USER
))
!
LookupAccountNameW
(
NULL
,
pEntries
[
i
].
Trustee
.
ptstrName
,
ppsid
[
i
],
&
sid_size
,
NULL
,
&
domain_size
,
&
use
))
{
if
(
!
lookup_user_account_name
(
ppsid
[
i
],
&
sid_size
,
NULL
,
&
domain_size
,
&
use
))
{
ret
=
GetLastError
();
goto
exit
;
}
}
else
if
(
!
LookupAccountNameW
(
NULL
,
pEntries
[
i
].
Trustee
.
ptstrName
,
ppsid
[
i
],
&
sid_size
,
NULL
,
&
domain_size
,
&
use
))
{
{
WARN
(
"bad user name %s for trustee %d
\n
"
,
debugstr_w
(
pEntries
[
i
].
Trustee
.
ptstrName
),
i
);
WARN
(
"bad user name %s for trustee %d
\n
"
,
debugstr_w
(
pEntries
[
i
].
Trustee
.
ptstrName
),
i
);
ret
=
ERROR_INVALID_PARAMETER
;
ret
=
ERROR_INVALID_PARAMETER
;
...
...
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