Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0e675165
Commit
0e675165
authored
Mar 01, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciseq: Play returns MCIERR_OUTOFRANGE as required.
parent
4dbceec8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
mcimidi.c
dlls/mciseq/mcimidi.c
+8
-6
No files found.
dlls/mciseq/mcimidi.c
View file @
0e675165
...
...
@@ -1170,17 +1170,19 @@ static DWORD MIDI_mciPlay(WINE_MCIMIDI* wmm, DWORD dwFlags, LPMCI_PLAY_PARMS lpP
return
MCI_SendCommandAsync
(
wmm
->
wDevID
,
MCI_PLAY
,
dwFlags
,
(
DWORD_PTR
)
lpParms
,
sizeof
(
MCI_PLAY_PARMS
));
}
if
(
lpParms
&&
(
dwFlags
&
MCI_TO
))
{
dwEndMS
=
MIDI_ConvertTimeFormatToMS
(
wmm
,
lpParms
->
dwTo
);
/* FIXME: if (dwEndMS > length) return MCIERR_OUTOFRANGE; */
}
else
{
dwEndMS
=
0xFFFFFFFFul
;
/* FIXME: dwEndMS = length; */
}
if
(
lpParms
&&
(
dwFlags
&
MCI_FROM
))
{
dwStartMS
=
MIDI_ConvertTimeFormatToMS
(
wmm
,
lpParms
->
dwFrom
);
}
else
{
dwStartMS
=
wmm
->
dwPositionMS
;
}
if
(
lpParms
&&
(
dwFlags
&
MCI_TO
))
{
dwEndMS
=
MIDI_ConvertTimeFormatToMS
(
wmm
,
lpParms
->
dwTo
);
}
else
{
dwEndMS
=
0xFFFFFFFFul
;
}
if
(
dwEndMS
<
dwStartMS
)
return
MCIERR_OUTOFRANGE
;
TRACE
(
"Playing from %u to %u
\n
"
,
dwStartMS
,
dwEndMS
);
...
...
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