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
cdec2413
Commit
cdec2413
authored
Feb 06, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Get rid of strcmp_wa().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a1e7371d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
mci.c
dlls/winmm/tests/mci.c
+1
-8
No files found.
dlls/winmm/tests/mci.c
View file @
cdec2413
...
@@ -163,13 +163,6 @@ static void test_notification_dbg(HWND hwnd, const char* command, WPARAM type, i
...
@@ -163,13 +163,6 @@ static void test_notification_dbg(HWND hwnd, const char* command, WPARAM type, i
else
ok_
(
__FILE__
,
line
)(
msg
.
wParam
==
type
,
"got %04lx instead of MCI_NOTIFY_xyz %04lx from command %s
\n
"
,
msg
.
wParam
,
type
,
command
);
else
ok_
(
__FILE__
,
line
)(
msg
.
wParam
==
type
,
"got %04lx instead of MCI_NOTIFY_xyz %04lx from command %s
\n
"
,
msg
.
wParam
,
type
,
command
);
}
}
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
{
CHAR
buf
[
512
];
WideCharToMultiByte
(
CP_ACP
,
0
,
strw
,
-
1
,
buf
,
sizeof
(
buf
),
0
,
0
);
return
lstrcmpA
(
buf
,
stra
);
}
static
void
test_mciParser
(
HWND
hwnd
)
static
void
test_mciParser
(
HWND
hwnd
)
{
{
MCIERROR
err
;
MCIERROR
err
;
...
@@ -464,7 +457,7 @@ static void test_openCloseWAVE(HWND hwnd)
...
@@ -464,7 +457,7 @@ static void test_openCloseWAVE(HWND hwnd)
/* MCI_..._PARMSA and PARMSW share the same layout, use one for both tests. */
/* MCI_..._PARMSA and PARMSW share the same layout, use one for both tests. */
err
=
mciSendCommandW
(
MCI_ALL_DEVICE_ID
,
MCI_SYSINFO
,
MCI_SYSINFO_NAME
|
MCI_SYSINFO_OPEN
,
(
DWORD_PTR
)
&
parm
);
err
=
mciSendCommandW
(
MCI_ALL_DEVICE_ID
,
MCI_SYSINFO
,
MCI_SYSINFO_NAME
|
MCI_SYSINFO_OPEN
,
(
DWORD_PTR
)
&
parm
);
ok
(
!
err
||
broken
(
err
==
MMSYSERR_NOTSUPPORTED
/* Win9x */
),
"mciCommandW MCI_SYSINFO all name 1 open buffer[8]: %s
\n
"
,
dbg_mcierr
(
err
));
ok
(
!
err
||
broken
(
err
==
MMSYSERR_NOTSUPPORTED
/* Win9x */
),
"mciCommandW MCI_SYSINFO all name 1 open buffer[8]: %s
\n
"
,
dbg_mcierr
(
err
));
if
(
!
err
)
ok
(
!
strcmp_wa
((
LPWSTR
)
buf
,
"mysound"
),
"sysinfo name 1 open contents
\n
"
);
if
(
!
err
)
ok
(
!
lstrcmpW
((
LPWSTR
)
buf
,
L
"mysound"
),
"sysinfo name 1 open contents
\n
"
);
memset
(
buf
,
0
,
sizeof
(
buf
));
memset
(
buf
,
0
,
sizeof
(
buf
));
buf
[
0
]
=
'Y'
;
buf
[
0
]
=
'Y'
;
...
...
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