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
3ecedb7e
Commit
3ecedb7e
authored
Oct 14, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Use StringFromGUID2().
parent
46dfbf89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
Makefile.in
dlls/advapi32/tests/Makefile.in
+1
-1
lsa.c
dlls/advapi32/tests/lsa.c
+2
-10
No files found.
dlls/advapi32/tests/Makefile.in
View file @
3ecedb7e
TESTDLL
=
advapi32.dll
IMPORTS
=
ole32
advapi32
IMPORTS
=
advapi32
C_SRCS
=
\
cred.c
\
...
...
dlls/advapi32/tests/lsa.c
View file @
3ecedb7e
...
...
@@ -119,15 +119,8 @@ static void test_lsa(void)
LPSTR
name
=
NULL
;
LPSTR
domain
=
NULL
;
LPSTR
forest
=
NULL
;
LPSTR
guidstr
=
NULL
;
WCHAR
guidstrW
[
64
];
UINT
len
;
guidstrW
[
0
]
=
'\0'
;
ConvertSidToStringSidA
(
dns_domain_info
->
Sid
,
&
strsid
);
StringFromGUID2
(
&
dns_domain_info
->
DomainGuid
,
guidstrW
,
ARRAY_SIZE
(
guidstrW
));
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
guidstrW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
guidstr
=
LocalAlloc
(
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
guidstrW
,
-
1
,
guidstr
,
len
,
NULL
,
NULL
);
if
(
dns_domain_info
->
Name
.
Buffer
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
dns_domain_info
->
Name
.
Buffer
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
name
=
LocalAlloc
(
0
,
len
);
...
...
@@ -144,12 +137,11 @@ static void test_lsa(void)
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"
,
forest
?
forest
:
"NULL"
,
guidstr
,
strsid
?
strsid
:
"NULL"
);
debugstr_a
(
name
),
debugstr_a
(
domain
),
debugstr_a
(
forest
)
,
debugstr_guid
(
&
dns_domain_info
->
DomainGuid
),
debugstr_a
(
strsid
)
);
LocalFree
(
name
);
LocalFree
(
forest
);
LocalFree
(
domain
);
LocalFree
(
guidstr
);
LocalFree
(
strsid
);
}
else
...
...
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