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
ee32bd99
Commit
ee32bd99
authored
Aug 25, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix lsa tests.
parent
dd306b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lsa.c
dlls/advapi32/tests/lsa.c
+3
-3
No files found.
dlls/advapi32/tests/lsa.c
View file @
ee32bd99
...
...
@@ -137,7 +137,7 @@ static void test_lsa(void)
LPSTR
guidstr
=
NULL
;
WCHAR
guidstrW
[
64
];
UINT
len
;
guidstr
[
0
]
=
'\0'
;
guidstr
W
[
0
]
=
'\0'
;
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
);
...
...
@@ -151,12 +151,12 @@ static void test_lsa(void)
if
(
dns_domain_info
->
DnsDomainName
.
Buffer
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsDomainName
.
Buffer
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
domain
=
LocalAlloc
(
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsDomainName
.
Buffer
,
-
1
,
name
,
len
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsDomainName
.
Buffer
,
-
1
,
domain
,
len
,
NULL
,
NULL
);
}
if
(
dns_domain_info
->
DnsForestName
.
Buffer
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsForestName
.
Buffer
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
forest
=
LocalAlloc
(
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsForestName
.
Buffer
,
-
1
,
name
,
len
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
DnsForestName
.
Buffer
,
-
1
,
forest
,
len
,
NULL
,
NULL
);
}
trace
(
" name: %s domain: %s forest: %s guid: %s sid: %s
\n
"
,
name
?
name
:
"NULL"
,
domain
?
domain
:
"NULL"
,
...
...
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