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
04cccae9
Commit
04cccae9
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() - use ACCOUNT_SIDS domain and name_use fields for well known SIDS.
parent
e9e4da8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
security.c
dlls/advapi32/security.c
+24
-5
No files found.
dlls/advapi32/security.c
View file @
04cccae9
...
...
@@ -2536,11 +2536,30 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
{
if
(
!
strcmpW
(
lpAccountName
,
ACCOUNT_SIDS
[
i
].
account
))
{
if
(
*
cchReferencedDomainName
)
*
ReferencedDomainName
=
'\0'
;
*
cchReferencedDomainName
=
0
;
*
peUse
=
SidTypeWellKnownGroup
;
return
CreateWellKnownSid
(
ACCOUNT_SIDS
[
i
].
type
,
NULL
,
Sid
,
cbSid
);
ret
=
CreateWellKnownSid
(
ACCOUNT_SIDS
[
i
].
type
,
NULL
,
Sid
,
cbSid
);
domainName
=
ACCOUNT_SIDS
[
i
].
domain
;
nameLen
=
strlenW
(
domainName
);
if
(
*
cchReferencedDomainName
<=
nameLen
&&
ReferencedDomainName
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
nameLen
+=
1
;
ret
=
FALSE
;
}
else
if
(
ReferencedDomainName
&&
domainName
)
{
strcpyW
(
ReferencedDomainName
,
domainName
);
}
*
cchReferencedDomainName
=
nameLen
;
if
(
ret
)
{
*
peUse
=
ACCOUNT_SIDS
[
i
].
name_use
;
}
return
ret
;
}
}
...
...
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