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
077e2a8e
Commit
077e2a8e
authored
Jul 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs/tests: Use wide string literal constants.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c3272034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
sxs.c
dlls/sxs/tests/sxs.c
+5
-9
No files found.
dlls/sxs/tests/sxs.c
View file @
077e2a8e
...
...
@@ -85,9 +85,6 @@ static void run_test(void)
SIZE_T
buffer_size
;
BOOL
ret
;
SXS_GUID_INFORMATION_CLR
*
info
;
WCHAR
expected_type_name
[]
=
{
'D'
,
'L'
,
'L'
,
'.'
,
'T'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
expected_runtime_version
[]
=
{
'v'
,
'4'
,
'.'
,
'0'
,
'.'
,
'0'
,
'.'
,
'0'
,
0
};
WCHAR
expected_assembly_identity
[]
=
{
'c'
,
'o'
,
'm'
,
't'
,
'e'
,
's'
,
't'
,
','
,
't'
,
'y'
,
'p'
,
'e'
,
'='
,
'"'
,
'w'
,
'i'
,
'n'
,
'3'
,
'2'
,
'"'
,
','
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'"'
,
'1'
,
'.'
,
'0'
,
'.'
,
'0'
,
'.'
,
'0'
,
'"'
,
0
};
ret
=
SxsLookupClrGuid
(
SXS_LOOKUP_CLR_GUID_FIND_CLR_CLASS
,
(
GUID
*
)
&
CLSID_Test
,
NULL
,
NULL
,
0
,
&
buffer_size
);
ok
(
ret
==
FALSE
,
"Got %d
\n
"
,
ret
);
...
...
@@ -99,12 +96,11 @@ static void run_test(void)
ok
(
GetLastError
()
==
0
,
"Got %d
\n
"
,
GetLastError
());
ok
(
info
->
dwFlags
==
SXS_GUID_INFORMATION_CLR_FLAG_IS_CLASS
,
"Got %d
\n
"
,
info
->
dwFlags
);
ok
(
lstrcmpW
(
info
->
pcwszTypeName
,
expected_type_name
)
==
0
,
"Got %s
\n
"
,
wine_dbgstr_w
(
info
->
pcwszTypeName
));
ok
(
lstrcmpW
(
info
->
pcwszAssemblyIdentity
,
expected_assembly_identity
)
==
0
,
"Got %s
\n
"
,
wine_dbgstr_w
(
info
->
pcwszAssemblyIdentity
));
ok
(
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
expected_runtime_version
)
==
0
,
"Got %s
\n
"
,
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
ok
(
!
lstrcmpW
(
info
->
pcwszTypeName
,
L"DLL.Test"
),
"Unexpected typename %s.
\n
"
,
wine_dbgstr_w
(
info
->
pcwszTypeName
));
ok
(
!
lstrcmpW
(
info
->
pcwszAssemblyIdentity
,
L"comtest,type=
\"
win32
\"
,version=
\"
1.0.0.0
\"
"
),
"Unexpected assembly identity %s.
\n
"
,
wine_dbgstr_w
(
info
->
pcwszAssemblyIdentity
));
ok
(
!
lstrcmpW
(
info
->
pcwszRuntimeVersion
,
L"v4.0.0.0"
),
"Unexpected runtime version %s.
\n
"
,
wine_dbgstr_w
(
info
->
pcwszRuntimeVersion
));
heap_free
(
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