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
6f164d50
Commit
6f164d50
authored
Jul 18, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Jul 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Test mciSendString with non-null return string buffer.
parent
c6fd037d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
mci.c
dlls/winmm/tests/mci.c
+12
-0
No files found.
dlls/winmm/tests/mci.c
View file @
6f164d50
...
...
@@ -28,7 +28,9 @@ START_TEST(mci)
const
char
command_open
[]
=
"open new type waveaudio alias mysound"
;
const
char
command_close_my
[]
=
"close mysound notify"
;
const
char
command_close_all
[]
=
"close all notify"
;
const
char
command_sysinfo
[]
=
"sysinfo waveaudio quantity open"
;
MSG
msg
;
char
buf
[
1024
];
err
=
mciSendString
(
command_open
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mciSendString(%s, NULL, 0 , NULL) returned error: %d
\n
"
,
command_open
,
err
);
...
...
@@ -44,6 +46,16 @@ START_TEST(mci)
err
=
mciSendString
(
command_close_all
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
!
err
,
"mciSendString(%s, NULL, 0 , NULL) returned error: %d
\n
"
,
command_close_all
,
err
);
memset
(
buf
,
0
,
sizeof
(
buf
));
err
=
mciSendString
(
command_close_all
,
buf
,
sizeof
(
buf
),
NULL
);
todo_wine
ok
(
!
err
,
"mciSendString(%s, buf, sizeof(buf) , NULL) returned error: %d
\n
"
,
command_close_all
,
err
);
todo_wine
ok
(
buf
[
0
]
==
0
,
"mciSendString(%s, buf, sizeof(buf) , NULL) changed output buffer: %s
\n
"
,
command_close_all
,
buf
);
memset
(
buf
,
0
,
sizeof
(
buf
));
err
=
mciSendString
(
command_sysinfo
,
buf
,
sizeof
(
buf
),
NULL
);
ok
(
!
err
,
"mciSendString(%s, buf, sizeof(buf) , NULL) returned error: %d
\n
"
,
command_sysinfo
,
err
);
todo_wine
ok
(
buf
[
0
]
==
'0'
&&
buf
[
1
]
==
0
,
"mciSendString(%s, buf, sizeof(buf) , NULL), expected output buffer '0', got: '%s'
\n
"
,
command_sysinfo
,
buf
);
err
=
mciSendCommand
(
MCI_ALL_DEVICE_ID
,
MCI_CLOSE
,
MCI_NOTIFY
,
0
);
todo_wine
ok
(
err
==
MCIERR_INVALID_DEVICE_ID
,
"mciSendCommand(MCI_ALL_DEVICE_ID, MCI_CLOSE, MCI_NOTIFY, NULL) returned %d instead of %d
\n
"
,
...
...
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