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
c5dadf47
Commit
c5dadf47
authored
Apr 01, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Define dvd_struct ourselves since it's not consistent across platforms.
parent
129d83ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
cdrom.c
dlls/ntdll/cdrom.c
+14
-6
No files found.
dlls/ntdll/cdrom.c
View file @
c5dadf47
...
...
@@ -1939,7 +1939,15 @@ static NTSTATUS DVD_GetRegion(int dev, PDVD_REGION region)
static
NTSTATUS
DVD_ReadStructure
(
int
dev
,
const
DVD_READ_STRUCTURE
*
structure
,
PDVD_LAYER_DESCRIPTOR
layer
)
{
#ifdef DVD_READ_STRUCT
dvd_struct
s
;
/* dvd_struct is not defined consistently across platforms */
union
{
struct
dvd_physical
physical
;
struct
dvd_copyright
copyright
;
struct
dvd_disckey
disckey
;
struct
dvd_bca
bca
;
struct
dvd_manufact
manufact
;
}
s
;
if
(
structure
->
BlockByteOffset
.
u
.
HighPart
||
structure
->
BlockByteOffset
.
u
.
LowPart
)
FIXME
(
": BlockByteOffset is not handled
\n
"
);
...
...
@@ -1947,26 +1955,26 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
switch
(
structure
->
Format
)
{
case
DvdPhysicalDescriptor
:
s
.
type
=
DVD_STRUCT_PHYSICAL
;
s
.
physical
.
type
=
DVD_STRUCT_PHYSICAL
;
s
.
physical
.
layer_num
=
structure
->
LayerNumber
;
break
;
case
DvdCopyrightDescriptor
:
s
.
type
=
DVD_STRUCT_COPYRIGHT
;
s
.
copyright
.
type
=
DVD_STRUCT_COPYRIGHT
;
s
.
copyright
.
layer_num
=
structure
->
LayerNumber
;
break
;
case
DvdDiskKeyDescriptor
:
s
.
type
=
DVD_STRUCT_DISCKEY
;
s
.
disckey
.
type
=
DVD_STRUCT_DISCKEY
;
s
.
disckey
.
agid
=
structure
->
SessionId
;
break
;
case
DvdBCADescriptor
:
s
.
type
=
DVD_STRUCT_BCA
;
s
.
bca
.
type
=
DVD_STRUCT_BCA
;
break
;
case
DvdManufacturerDescriptor
:
s
.
type
=
DVD_STRUCT_MANUFACT
;
s
.
manufact
.
type
=
DVD_STRUCT_MANUFACT
;
s
.
manufact
.
layer_num
=
structure
->
LayerNumber
;
break
;
...
...
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