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
dabf5e88
Commit
dabf5e88
authored
Aug 01, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Check returned data from LsaQueryInformationPolicy.
parent
72ac6f5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Makefile.in
dlls/advapi32/tests/Makefile.in
+1
-0
lsa.c
dlls/advapi32/tests/lsa.c
+5
-1
No files found.
dlls/advapi32/tests/Makefile.in
View file @
dabf5e88
...
...
@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
TESTDLL
=
advapi32.dll
IMPORTS
=
advapi32 kernel32
EXTRALIBS
=
-luuid
CTESTS
=
\
crypt.c
\
...
...
dlls/advapi32/tests/lsa.c
View file @
dabf5e88
...
...
@@ -28,7 +28,8 @@
#include "winreg.h"
#include "winternl.h"
#include "ntsecapi.h"
#define INITGUID
#include "guiddef.h"
#include "wine/test.h"
static
HMODULE
hadvapi32
;
...
...
@@ -80,6 +81,7 @@ static void test_lsa(void)
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyPrimaryDomainInformation
,
(
PVOID
*
)
&
primary_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyPrimaryDomainInformation) failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
ok
(
primary_domain_info
->
Sid
==
0
,
"Sid should be NULL on the local computer
\n
"
);
pLsaFreeMemory
((
LPVOID
)
primary_domain_info
);
}
...
...
@@ -92,6 +94,8 @@ static void test_lsa(void)
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyDnsDomainInformation
,
(
PVOID
*
)
&
dns_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08lx
\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
"
);
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