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
815cd34c
Commit
815cd34c
authored
Oct 01, 2010
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Oct 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Initialize whole MIDIHDR struct before using it.
parent
dfc9351b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
midi.c
dlls/winmm/tests/midi.c
+3
-0
No files found.
dlls/winmm/tests/midi.c
View file @
815cd34c
...
...
@@ -127,6 +127,7 @@ static void test_midiIn_device(UINT udev, HWND hwnd)
test_notification
(
hwnd
,
"midiInOpen"
,
MIM_OPEN
,
0
);
memset
(
&
mhdr
,
0
,
sizeof
(
mhdr
));
mhdr
.
dwFlags
=
0
;
mhdr
.
dwUser
=
0x56FA552C
;
mhdr
.
dwBufferLength
=
70000
;
/* > 64KB! */
...
...
@@ -283,6 +284,7 @@ static void test_midiOut_device(UINT udev, HWND hwnd)
if
(
!
rc
)
Sleep
(
400
);
/* Hear note */
}
memset
(
&
mhdr
,
0
,
sizeof
(
mhdr
));
mhdr
.
dwFlags
=
0
;
mhdr
.
dwUser
=
0x56FA552C
;
mhdr
.
dwOffset
=
0xDEADBEEF
;
...
...
@@ -407,6 +409,7 @@ static void test_midiStream(UINT udev, HWND hwnd)
ok
(
!
rc
,
"midiStreamProperty TIMEDIV rc=%s
\n
"
,
mmsys_error
(
rc
));
todo_wine
ok
(
24
==
LOWORD
(
midiprop
.
tdiv
.
dwTimeDiv
),
"default stream time division %u
\n
"
,
midiprop
.
tdiv
.
dwTimeDiv
);
memset
(
&
mhdr
,
0
,
sizeof
(
mhdr
));
mhdr
.
dwFlags
=
0
;
mhdr
.
dwUser
=
0x56FA552C
;
mhdr
.
dwOffset
=
1234567890
;
...
...
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