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
9c489004
Commit
9c489004
authored
Sep 07, 2004
by
Wolfgang Schwotzer
Committed by
Alexandre Julliard
Sep 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LookupAccountNameA stub always returns a valid SID.
parent
32b23b34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
security.c
dlls/advapi32/security.c
+43
-1
No files found.
dlls/advapi32/security.c
View file @
9c489004
...
@@ -1448,8 +1448,50 @@ LookupAccountNameA(
...
@@ -1448,8 +1448,50 @@ LookupAccountNameA(
IN
OUT
LPDWORD
cbReferencedDomainName
,
IN
OUT
LPDWORD
cbReferencedDomainName
,
OUT
PSID_NAME_USE
name_use
)
OUT
PSID_NAME_USE
name_use
)
{
{
/* Default implementation: Always return a default SID */
SID_IDENTIFIER_AUTHORITY
identifierAuthority
=
{
SECURITY_NT_AUTHORITY
};
BOOL
ret
;
PSID
pSid
;
static
const
char
dm
[]
=
"DOMAIN"
;
FIXME
(
"(%s,%s,%p,%p,%p,%p,%p), stub.
\n
"
,
system
,
account
,
sid
,
cbSid
,
ReferencedDomainName
,
cbReferencedDomainName
,
name_use
);
FIXME
(
"(%s,%s,%p,%p,%p,%p,%p), stub.
\n
"
,
system
,
account
,
sid
,
cbSid
,
ReferencedDomainName
,
cbReferencedDomainName
,
name_use
);
return
FALSE
;
ret
=
AllocateAndInitializeSid
(
&
identifierAuthority
,
2
,
SECURITY_BUILTIN_DOMAIN_RID
,
DOMAIN_ALIAS_RID_ADMINS
,
0
,
0
,
0
,
0
,
0
,
0
,
&
pSid
);
if
(
!
ret
)
return
FALSE
;
if
(
!
RtlValidSid
(
pSid
))
{
FreeSid
(
pSid
);
return
FALSE
;
}
if
(
sid
!=
NULL
&&
(
*
cbSid
>=
GetLengthSid
(
pSid
)))
CopySid
(
*
cbSid
,
sid
,
pSid
);
if
(
*
cbSid
<
GetLengthSid
(
pSid
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
ret
=
FALSE
;
}
*
cbSid
=
GetLengthSid
(
pSid
);
if
(
ReferencedDomainName
!=
NULL
&&
(
*
cbReferencedDomainName
>
strlen
(
dm
)))
strcpy
(
ReferencedDomainName
,
dm
);
if
(
*
cbReferencedDomainName
<=
strlen
(
dm
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
ret
=
FALSE
;
}
*
cbReferencedDomainName
=
strlen
(
dm
)
+
1
;
FreeSid
(
pSid
);
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