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
a3e0bc10
Commit
a3e0bc10
authored
Oct 18, 2008
by
Paul Bryan Roberts
Committed by
Alexandre Julliard
Oct 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: LookupAccountNameW() - correct call in SetEntriesInAclW().
parent
04cccae9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
security.c
dlls/advapi32/security.c
+2
-2
No files found.
dlls/advapi32/security.c
View file @
a3e0bc10
...
...
@@ -2541,7 +2541,7 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
domainName
=
ACCOUNT_SIDS
[
i
].
domain
;
nameLen
=
strlenW
(
domainName
);
if
(
*
cchReferencedDomainName
<=
nameLen
&&
ReferencedDomainName
)
if
(
*
cchReferencedDomainName
<=
nameLen
||
!
ret
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
nameLen
+=
1
;
...
...
@@ -3244,7 +3244,7 @@ DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
case
TRUSTEE_IS_NAME
:
{
DWORD
sid_size
=
FIELD_OFFSET
(
SID
,
SubAuthority
[
SID_MAX_SUB_AUTHORITIES
]);
DWORD
domain_size
=
0
;
DWORD
domain_size
=
MAX_COMPUTERNAME_LENGTH
+
1
;
SID_NAME_USE
use
;
if
(
!
LookupAccountNameW
(
NULL
,
pEntries
[
i
].
Trustee
.
ptstrName
,
ppsid
[
i
],
&
sid_size
,
NULL
,
&
domain_size
,
&
use
))
{
...
...
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