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
c347af5c
Commit
c347af5c
authored
Sep 26, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: The code can only handle up to 128 MIDI tracks.
parent
4c4a0875
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mcimidi.c
dlls/mciseq/mcimidi.c
+4
-4
No files found.
dlls/mciseq/mcimidi.c
View file @
c347af5c
...
...
@@ -488,10 +488,10 @@ static DWORD MIDI_mciReadMThd(WINE_MCIMIDI* wmm, DWORD dwOffset)
return
MCIERR_INVALID_FILE
;
}
if
(
wmm
->
nTracks
&
0x800
0
)
{
/*
this shouldn't be a problem...
*/
WARN
(
"Ouch !! Implementation limitation to 32k tracks per MIDI file is overflowed
\n
"
);
wmm
->
nTracks
=
0x
7FFF
;
if
(
wmm
->
nTracks
>
0x8
0
)
{
/*
wTrackNr is 7 bits only
*/
FIXME
(
"Truncating MIDI file with %u tracks
\n
"
,
wmm
->
nTracks
);
wmm
->
nTracks
=
0x
80
;
}
if
((
wmm
->
tracks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
MCI_MIDITRACK
)
*
wmm
->
nTracks
))
==
NULL
)
{
...
...
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