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
9d03ce02
Commit
9d03ce02
authored
Dec 16, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5bcc65d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
dmband.c
dlls/dmband/tests/dmband.c
+3
-5
No files found.
dlls/dmband/tests/dmband.c
View file @
9d03ce02
...
...
@@ -392,8 +392,6 @@ static void test_parsedescriptor(void)
DMUS_OBJECTDESC
desc
=
{
0
};
HRESULT
hr
;
DWORD
valid
;
const
WCHAR
s_inam
[]
=
{
'I'
,
'N'
,
'A'
,
'M'
,
'\0'
};
const
WCHAR
s_unam
[]
=
{
'U'
,
'N'
,
'A'
,
'M'
,
'\0'
};
const
FOURCC
alldesc
[]
=
{
FOURCC_RIFF
,
DMUS_FOURCC_BAND_FORM
,
DMUS_FOURCC_CATEGORY_CHUNK
,
FOURCC_LIST
,
...
...
@@ -477,7 +475,7 @@ static void test_parsedescriptor(void)
wine_dbgstr_guid
(
&
desc
.
guidClass
));
ok
(
IsEqualGUID
(
&
desc
.
guidObject
,
&
GUID_NULL
),
"Got object guid %s, expected GUID_NULL
\n
"
,
wine_dbgstr_guid
(
&
desc
.
guidClass
));
ok
(
!
memcmp
(
desc
.
wszName
,
s_unam
,
sizeof
(
s_unam
)
),
"Got name '%s', expected 'UNAM'
\n
"
,
ok
(
!
lstrcmpW
(
desc
.
wszName
,
L"UNAM"
),
"Got name '%s', expected 'UNAM'
\n
"
,
wine_dbgstr_w
(
desc
.
wszName
));
ok
(
!
desc
.
ftDate
.
dwHighDateTime
&&
!
desc
.
ftDate
.
dwLowDateTime
,
"Got file time %08x %08x, expected 0
\n
"
,
desc
.
ftDate
.
dwHighDateTime
,
...
...
@@ -492,7 +490,7 @@ static void test_parsedescriptor(void)
ok
(
hr
==
S_OK
,
"ParseDescriptor failed: %08x, expected S_OK
\n
"
,
hr
);
ok
(
desc
.
dwValidData
==
(
DMUS_OBJ_CLASS
|
DMUS_OBJ_NAME
),
"Got valid data %#x, expected DMUS_OBJ_CLASS | DMUS_OBJ_NAME
\n
"
,
desc
.
dwValidData
);
ok
(
!
memcmp
(
desc
.
wszName
,
s_inam
,
sizeof
(
s_inam
)
),
"Got name '%s', expected 'INAM'
\n
"
,
ok
(
!
lstrcmpW
(
desc
.
wszName
,
L"INAM"
),
"Got name '%s', expected 'INAM'
\n
"
,
wine_dbgstr_w
(
desc
.
wszName
));
IStream_Release
(
stream
);
...
...
@@ -513,7 +511,7 @@ static void test_parsedescriptor(void)
ok
(
hr
==
S_OK
,
"ParseDescriptor failed: %08x, expected S_OK
\n
"
,
hr
);
valid
=
DMUS_OBJ_OBJECT
|
DMUS_OBJ_CLASS
|
DMUS_OBJ_NAME
|
DMUS_OBJ_CATEGORY
|
DMUS_OBJ_VERSION
|
DMUS_OBJ_DATE
;
ok
(
desc
.
dwValidData
==
valid
,
"Got valid data %#x, expected %#x
\n
"
,
desc
.
dwValidData
,
valid
);
ok
(
!
memcmp
(
desc
.
wszName
,
s_inam
,
sizeof
(
s_inam
)
),
"Got name '%s', expected 'INAM'
\n
"
,
ok
(
!
lstrcmpW
(
desc
.
wszName
,
L"INAM"
),
"Got name '%s', expected 'INAM'
\n
"
,
wine_dbgstr_w
(
desc
.
wszName
));
IStream_Release
(
stream
);
...
...
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