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
c7ffd4fa
Commit
c7ffd4fa
authored
Jun 24, 2008
by
Kai Blin
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix lsa tests for domain members.
For a domain member, the domain info contains meaningful implementation. It makes no sense to check for the standalone case only.
parent
6f16f813
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lsa.c
dlls/advapi32/tests/lsa.c
+4
-3
No files found.
dlls/advapi32/tests/lsa.c
View file @
c7ffd4fa
...
...
@@ -95,7 +95,6 @@ static void test_lsa(void)
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyPrimaryDomainInformation
,
(
PVOID
*
)
&
primary_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyPrimaryDomainInformation) failed, returned 0x%08x
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
ok
(
primary_domain_info
->
Sid
==
0
,
"Sid should be NULL on the local computer
\n
"
);
if
(
primary_domain_info
->
Sid
)
{
LPSTR
strsid
;
if
(
pConvertSidToStringSidA
(
primary_domain_info
->
Sid
,
&
strsid
))
...
...
@@ -115,6 +114,8 @@ static void test_lsa(void)
else
trace
(
"invalid sid
\n
"
);
}
else
trace
(
"Running on a standalone system.
\n
"
);
pLsaFreeMemory
((
LPVOID
)
primary_domain_info
);
}
...
...
@@ -129,8 +130,6 @@ static void test_lsa(void)
ok
(
status
==
STATUS_SUCCESS
||
status
==
STATUS_INVALID_PARAMETER
,
"LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08x
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
ok
(
IsEqualGUID
(
&
dns_domain_info
->
DomainGuid
,
&
GUID_NULL
),
"DomainGUID should be GUID_NULL on local computer
\n
"
);
ok
(
dns_domain_info
->
Sid
==
0
,
"Sid should be NULL on the local computer
\n
"
);
if
(
dns_domain_info
->
Sid
||
!
IsEqualGUID
(
&
dns_domain_info
->
DomainGuid
,
&
GUID_NULL
))
{
LPSTR
strsid
=
NULL
;
LPSTR
name
=
NULL
;
...
...
@@ -169,6 +168,8 @@ static void test_lsa(void)
LocalFree
(
guidstr
);
LocalFree
(
strsid
);
}
else
trace
(
"Running on a standalone system.
\n
"
);
pLsaFreeMemory
((
LPVOID
)
dns_domain_info
);
}
...
...
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