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
fa8cca5e
Commit
fa8cca5e
authored
Feb 25, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define CD_SECS and CD_FRAMES also on non-Linux systems. Avoid a
non-portable TRACE on non-Linux systems.
parent
77c8b1dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
cdrom.c
dlls/ntdll/cdrom.c
+11
-4
No files found.
dlls/ntdll/cdrom.c
View file @
fa8cca5e
...
...
@@ -72,6 +72,15 @@
#include "file.h"
#include "wine/debug.h"
/* Non-Linux systems do not have linux/cdrom.h and the like, and thus
lack the following constants. */
#ifndef CD_SECS
#define CD_SECS 60
/* seconds per minute */
#endif
#ifndef CD_FRAMES
#define CD_FRAMES 75
/* frames per second */
#endif
static
const
struct
iocodexs
{
...
...
@@ -237,7 +246,7 @@ static int CDROM_SyncCache(int dev)
goto
end
;
}
TRACE
(
"caching toc from=%d to=%d
\n
"
,
hdr
.
cdth_trk0
,
hdr
.
cdth_trk1
);
TRACE
(
"caching toc from=%d to=%d
\n
"
,
toc
->
FirstTrack
,
toc
->
LastTrack
);
toc
->
FirstTrack
=
hdr
.
cdth_trk0
;
toc
->
LastTrack
=
hdr
.
cdth_trk1
;
...
...
@@ -246,8 +255,6 @@ static int CDROM_SyncCache(int dev)
toc
->
Length
[
0
]
=
tsz
>>
8
;
toc
->
Length
[
1
]
=
tsz
;
TRACE
(
"from=%d to=%d
\n
"
,
toc
->
FirstTrack
,
toc
->
LastTrack
);
for
(
i
=
toc
->
FirstTrack
;
i
<=
toc
->
LastTrack
+
1
;
i
++
)
{
if
(
i
==
toc
->
LastTrack
+
1
)
...
...
@@ -286,7 +293,7 @@ static int CDROM_SyncCache(int dev)
toc
->
Length
[
0
]
=
tsz
>>
8
;
toc
->
Length
[
1
]
=
tsz
;
TRACE
(
"caching toc from=%d to=%d
\n
"
,
hdr
.
cdth_trk0
,
hdr
.
cdth_trk1
);
TRACE
(
"caching toc from=%d to=%d
\n
"
,
toc
->
FirstTrack
,
toc
->
LastTrack
);
for
(
i
=
toc
->
FirstTrack
;
i
<=
toc
->
LastTrack
+
1
;
i
++
)
{
...
...
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