Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0e662695
Commit
0e662695
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() - NULL account name handled.
parent
a37512ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
security.c
dlls/advapi32/security.c
+5
-0
security.c
dlls/advapi32/tests/security.c
+5
-8
No files found.
dlls/advapi32/security.c
View file @
0e662695
...
...
@@ -2532,6 +2532,11 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
FIXME
(
"%s %s %p %p %p %p %p - stub
\n
"
,
debugstr_w
(
lpSystemName
),
debugstr_w
(
lpAccountName
),
Sid
,
cbSid
,
ReferencedDomainName
,
cchReferencedDomainName
,
peUse
);
if
(
!
lpAccountName
||
!
strcmpW
(
lpAccountName
,
Blank
))
{
lpAccountName
=
BUILTIN
;
}
for
(
i
=
0
;
i
<
(
sizeof
(
ACCOUNT_SIDS
)
/
sizeof
(
ACCOUNT_SIDS
[
0
]));
i
++
)
{
if
(
!
strcmpW
(
lpAccountName
,
ACCOUNT_SIDS
[
i
].
account
))
...
...
dlls/advapi32/tests/security.c
View file @
0e662695
...
...
@@ -1632,14 +1632,11 @@ static void test_LookupAccountName(void)
ret
=
LookupAccountNameA
(
NULL
,
NULL
,
psid
,
&
sid_size
,
domain
,
&
domain_size
,
&
sid_use
);
get_sid_info
(
psid
,
&
account
,
&
sid_dom
);
ok
(
ret
,
"Failed to lookup account name
\n
"
);
todo_wine
{
/* Using a fixed string will not work on different locales */
ok
(
!
lstrcmp
(
account
,
domain
),
"Got %s for account and %s for domain, these should be the same
\n
"
,
account
,
domain
);
ok
(
sid_use
==
SidTypeDomain
,
"Expected SidTypeDomain (%d), got %d
\n
"
,
SidTypeDomain
,
sid_use
);
}
/* Using a fixed string will not work on different locales */
ok
(
!
lstrcmp
(
account
,
domain
),
"Got %s for account and %s for domain, these should be the same
\n
"
,
account
,
domain
);
ok
(
sid_use
==
SidTypeDomain
,
"Expected SidTypeDomain (%d), got %d
\n
"
,
SidTypeDomain
,
sid_use
);
/* try an invalid account name */
SetLastError
(
0xdeadbeef
);
...
...
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