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
aad78b91
Commit
aad78b91
authored
Sep 27, 2000
by
James Abbatiello
Committed by
Alexandre Julliard
Sep 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MCI_STATUS_LENGTH on Windows returns one frame less than the total
track length for the last track on a CD. This also affects queries for the total length of the CD.
parent
ab170a9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mcicda.c
dlls/winmm/mcicda/mcicda.c
+8
-1
No files found.
dlls/winmm/mcicda/mcicda.c
View file @
aad78b91
...
@@ -440,8 +440,15 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
...
@@ -440,8 +440,15 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
if
(
lpParms
->
dwTrack
>
wmcda
->
wcda
.
nTracks
||
lpParms
->
dwTrack
==
0
)
if
(
lpParms
->
dwTrack
>
wmcda
->
wcda
.
nTracks
||
lpParms
->
dwTrack
==
0
)
return
MCIERR_OUTOFRANGE
;
return
MCIERR_OUTOFRANGE
;
lpParms
->
dwReturn
=
wmcda
->
wcda
.
lpdwTrackLen
[
lpParms
->
dwTrack
-
1
];
lpParms
->
dwReturn
=
wmcda
->
wcda
.
lpdwTrackLen
[
lpParms
->
dwTrack
-
1
];
/* Windows returns one frame less than the total track length for the
last track on the CD. See CDDB HOWTO. Verified on Win95OSR2. */
if
(
lpParms
->
dwTrack
==
wmcda
->
wcda
.
nTracks
)
lpParms
->
dwReturn
--
;
}
else
{
}
else
{
lpParms
->
dwReturn
=
wmcda
->
wcda
.
dwLastFrame
;
/* Sum of the lengths of all of the tracks. Inherits the
'off by one frame' behavior from the length of the last track.
See above comment. */
lpParms
->
dwReturn
=
wmcda
->
wcda
.
dwLastFrame
-
wmcda
->
wcda
.
dwFirstFrame
-
1
;
}
}
lpParms
->
dwReturn
=
MCICDA_CalcTime
(
wmcda
,
lpParms
->
dwReturn
=
MCICDA_CalcTime
(
wmcda
,
(
wmcda
->
dwTimeFormat
==
MCI_FORMAT_TMSF
)
(
wmcda
->
dwTimeFormat
==
MCI_FORMAT_TMSF
)
...
...
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