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
9fcb4f55
Commit
9fcb4f55
authored
Aug 19, 2000
by
Ed Snow
Committed by
Alexandre Julliard
Aug 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected serial number generation for CD's with 1 or 2 tracks.
parent
eb0ab1b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
cdrom.c
misc/cdrom.c
+26
-1
No files found.
misc/cdrom.c
View file @
9fcb4f55
...
@@ -583,6 +583,18 @@ DWORD CDROM_Audio_GetSerial(WINE_CDAUDIO* wcda)
...
@@ -583,6 +583,18 @@ DWORD CDROM_Audio_GetSerial(WINE_CDAUDIO* wcda)
int
i
;
int
i
;
DWORD
dwFrame
,
msf
;
DWORD
dwFrame
,
msf
;
WORD
wMinutes
,
wSeconds
,
wFrames
;
WORD
wMinutes
,
wSeconds
,
wFrames
;
WORD
wMagic
;
DWORD
dwStart
,
dwEnd
;
/*
* wMagic collects the wFrames from track 1
* dwStart, dwEnd collect the begining and end of the disc respectively, in
* frames.
* There is is collected for correcting the serial when there are less than
* 3 tracks.
*/
wMagic
=
0
;
dwStart
=
dwEnd
=
0
;
for
(
i
=
0
;
i
<
wcda
->
nTracks
;
i
++
)
{
for
(
i
=
0
;
i
<
wcda
->
nTracks
;
i
++
)
{
dwFrame
=
wcda
->
lpdwTrackPos
[
i
];
dwFrame
=
wcda
->
lpdwTrackPos
[
i
];
...
@@ -594,7 +606,20 @@ DWORD CDROM_Audio_GetSerial(WINE_CDAUDIO* wcda)
...
@@ -594,7 +606,20 @@ DWORD CDROM_Audio_GetSerial(WINE_CDAUDIO* wcda)
serial
+=
(
CDROM_MSF_MINUTE
(
msf
)
<<
16
)
+
serial
+=
(
CDROM_MSF_MINUTE
(
msf
)
<<
16
)
+
(
CDROM_MSF_SECOND
(
msf
)
<<
8
)
+
(
CDROM_MSF_SECOND
(
msf
)
<<
8
)
+
(
CDROM_MSF_FRAME
(
msf
));
(
CDROM_MSF_FRAME
(
msf
));
}
if
(
i
==
0
)
{
wMagic
=
wFrames
;
dwStart
=
dwFrame
;
}
dwEnd
=
dwFrame
+
wcda
->
lpdwTrackLen
[
i
];
}
if
(
wcda
->
nTracks
<
3
)
{
serial
+=
wMagic
+
(
dwEnd
-
dwStart
);
}
return
serial
;
return
serial
;
}
}
...
...
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