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
7bd6be07
Commit
7bd6be07
authored
Feb 10, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fix incorrect memory useage (Valgrind w/ MIDI tests).
parent
a8b80787
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
midi.c
dlls/winmm/tests/midi.c
+2
-2
winmm.c
dlls/winmm/winmm.c
+2
-2
No files found.
dlls/winmm/tests/midi.c
View file @
7bd6be07
...
...
@@ -341,8 +341,8 @@ static void test_midiStream(UINT udev, HWND hwnd)
* but it will be set on all systems after the job is finished. */
Sleep
(
90
);
/* Wine
starts
playing immediately */
/*todo_wine test_notification(hwnd, "midiStream still paused", 0, WHATEVER);*/
/* Wine
<1.1.39 started
playing immediately */
test_notification
(
hwnd
,
"midiStream still paused"
,
0
,
WHATEVER
);
/* MSDN asks to use midiStreamRestart prior to midiStreamOut()
* because the starting state is 'pause', but some apps seem to
...
...
dlls/winmm/winmm.c
View file @
7bd6be07
...
...
@@ -1614,7 +1614,7 @@ static DWORD CALLBACK MMSYSTEM_MidiStream_Player(LPVOID pmt)
SetEvent
(
lpMidiStrm
->
hEvent
);
TRACE
(
"Ready to go 1
\n
"
);
/* thread is started in paused mode */
SuspendThread
(
lpMidiStrm
->
hThread
);
SuspendThread
(
GetCurrentThread
()
);
TRACE
(
"Ready to go 2
\n
"
);
lpMidiStrm
->
dwStartTicks
=
0
;
...
...
@@ -1738,8 +1738,8 @@ MMRESULT WINAPI midiStreamClose(HMIDISTRM hMidiStrm)
midiStreamStop
(
hMidiStrm
);
MMSYSTEM_MidiStream_PostMessage
(
lpMidiStrm
,
WM_QUIT
,
0
,
0
);
HeapFree
(
GetProcessHeap
(),
0
,
lpMidiStrm
);
CloseHandle
(
lpMidiStrm
->
hEvent
);
HeapFree
(
GetProcessHeap
(),
0
,
lpMidiStrm
);
return
midiOutClose
((
HMIDIOUT
)
hMidiStrm
);
}
...
...
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