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
c339d8e2
Commit
c339d8e2
authored
Aug 29, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix lsa tests on windows98.
parent
1687a5d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lsa.c
dlls/advapi32/tests/lsa.c
+5
-3
No files found.
dlls/advapi32/tests/lsa.c
View file @
c339d8e2
...
...
@@ -40,6 +40,7 @@ static NTSTATUS (WINAPI *pLsaClose)(LSA_HANDLE);
static
NTSTATUS
(
WINAPI
*
pLsaFreeMemory
)(
PVOID
);
static
NTSTATUS
(
WINAPI
*
pLsaOpenPolicy
)(
PLSA_UNICODE_STRING
,
PLSA_OBJECT_ATTRIBUTES
,
ACCESS_MASK
,
PLSA_HANDLE
);
static
NTSTATUS
(
WINAPI
*
pLsaQueryInformationPolicy
)(
LSA_HANDLE
,
POLICY_INFORMATION_CLASS
,
PVOID
*
);
static
BOOL
(
WINAPI
*
pConvertSidToStringSidA
)(
PSID
pSid
,
LPSTR
*
str
);
static
BOOL
init
(
void
)
{
...
...
@@ -50,8 +51,9 @@ static BOOL init(void)
pLsaFreeMemory
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"LsaFreeMemory"
);
pLsaOpenPolicy
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"LsaOpenPolicy"
);
pLsaQueryInformationPolicy
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"LsaQueryInformationPolicy"
);
pConvertSidToStringSidA
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"ConvertSidToStringSidA"
);
if
(
pLsaClose
&&
pLsaFreeMemory
&&
pLsaOpenPolicy
&&
pLsaQueryInformationPolicy
)
if
(
pLsaClose
&&
pLsaFreeMemory
&&
pLsaOpenPolicy
&&
pLsaQueryInformationPolicy
&&
pConvertSidToStringSidA
)
return
TRUE
;
}
...
...
@@ -96,7 +98,7 @@ static void test_lsa(void)
ok
(
primary_domain_info
->
Sid
==
0
,
"Sid should be NULL on the local computer
\n
"
);
if
(
primary_domain_info
->
Sid
)
{
LPSTR
strsid
;
if
(
ConvertSidToStringSidA
(
primary_domain_info
->
Sid
,
&
strsid
))
if
(
p
ConvertSidToStringSidA
(
primary_domain_info
->
Sid
,
&
strsid
))
{
if
(
primary_domain_info
->
Name
.
Buffer
)
{
LPSTR
name
=
NULL
;
...
...
@@ -138,7 +140,7 @@ static void test_lsa(void)
WCHAR
guidstrW
[
64
];
UINT
len
;
guidstrW
[
0
]
=
'\0'
;
ConvertSidToStringSidA
(
dns_domain_info
->
Sid
,
&
strsid
);
p
ConvertSidToStringSidA
(
dns_domain_info
->
Sid
,
&
strsid
);
StringFromGUID2
(
&
dns_domain_info
->
DomainGuid
,
guidstrW
,
sizeof
(
guidstrW
)
/
sizeof
(
WCHAR
));
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
guidstrW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
guidstr
=
LocalAlloc
(
0
,
len
);
...
...
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