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
f9e4e9df
Commit
f9e4e9df
authored
Dec 31, 2001
by
Chris Green
Committed by
Alexandre Julliard
Dec 31, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the correct label on iso9660 mixed-mode cds.
parent
00bd7998
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
cdrom.c
misc/cdrom.c
+19
-8
No files found.
misc/cdrom.c
View file @
f9e4e9df
...
...
@@ -612,21 +612,35 @@ int CDROM_Reset(WINE_CDAUDIO* wcda, int parentdev)
return
ret
;
}
/**************************************************************************
* CDROM_Data_FindBestVoldesc [internal]
*/
WORD
CDROM_Data_FindBestVoldesc
(
int
fd
)
{
BYTE
cur_vd_type
,
max_vd_type
=
0
;
unsigned
int
offs
,
best_offs
=
0
;
unsigned
int
offs
,
best_offs
=
0
,
extra_offs
=
0
;
char
sig
[
3
];
for
(
offs
=
0x8000
;
offs
<=
0x9800
;
offs
+=
0x800
)
{
lseek
(
fd
,
offs
,
SEEK_SET
);
/* if 'CDROM' occurs at position 8, this is a pre-iso9660 cd, and
* the volume label is displaced forward by 8
*/
lseek
(
fd
,
offs
+
11
,
SEEK_SET
);
/* check for non-ISO9660 signature */
read
(
fd
,
&
sig
,
3
);
if
((
sig
[
0
]
==
'R'
)
&&
(
sig
[
1
]
==
'O'
)
&&
(
sig
[
2
]
==
'M'
))
{
extra_offs
=
8
;
}
lseek
(
fd
,
offs
+
extra_offs
,
SEEK_SET
);
read
(
fd
,
&
cur_vd_type
,
1
);
if
(
cur_vd_type
==
0xff
)
/* voldesc set terminator */
break
;
if
(
cur_vd_type
>
max_vd_type
)
{
max_vd_type
=
cur_vd_type
;
best_offs
=
offs
;
best_offs
=
offs
+
extra_offs
;
}
}
return
best_offs
;
...
...
@@ -858,6 +872,8 @@ DWORD CDROM_GetLabel(int drive, char *label)
if
(
!
cdname
)
cdname
=
"XA 2.1"
;
case
CDS_XA_2_2
:
if
(
!
cdname
)
cdname
=
"XA 2.2"
;
case
CDS_MIXED
:
if
(
!
cdname
)
cdname
=
"Mixed mode"
;
case
-
1
:
if
(
!
cdname
)
cdname
=
"Unknown/ISO file"
;
...
...
@@ -867,11 +883,6 @@ DWORD CDROM_GetLabel(int drive, char *label)
ret
=
0
;
break
;
case
CDS_MIXED
:
cdname
=
"Mixed mode"
;
FIXME
(
"Need to get the label of a mixed mode CD: not implemented yet !
\n
"
);
/* fall through */
case
CDS_NO_INFO
:
if
(
!
cdname
)
cdname
=
"No_info"
;
ret
=
0
;
...
...
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