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
6077b623
Commit
6077b623
authored
Feb 13, 2012
by
Dan Kegel
Committed by
Alexandre Julliard
Feb 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix endianness of three fields in DVD_LAYER_DESCRIPTOR.
parent
d2ca9f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cdrom.c
dlls/ntdll/cdrom.c
+12
-6
No files found.
dlls/ntdll/cdrom.c
View file @
6077b623
...
...
@@ -144,6 +144,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(cdrom);
# define CD_FRAMES 75
/* frames per second */
#endif
#ifdef WORDS_BIGENDIAN
#define GET_BE_DWORD(x) (x)
#else
#define GET_BE_DWORD(x) RtlUlongByteSwap(x)
#endif
static
const
struct
iocodexs
{
DWORD
code
;
...
...
@@ -2568,9 +2574,9 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
p
->
Reserved1
=
0
;
p
->
TrackDensity
=
l
->
track_density
;
p
->
LinearDensity
=
l
->
linear_density
;
p
->
StartingDataSector
=
l
->
start_sector
;
p
->
EndDataSector
=
l
->
end_sector
;
p
->
EndLayerZeroSector
=
l
->
end_sector_l0
;
p
->
StartingDataSector
=
GET_BE_DWORD
(
l
->
start_sector
)
;
p
->
EndDataSector
=
GET_BE_DWORD
(
l
->
end_sector
)
;
p
->
EndLayerZeroSector
=
GET_BE_DWORD
(
l
->
end_sector_l0
)
;
p
->
Reserved5
=
0
;
p
->
BCAFlag
=
l
->
bca
;
p
->
Reserved6
=
0
;
...
...
@@ -2693,9 +2699,9 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
nt_desc
.
xlayer
->
TrackDensity
=
desc
.
phys
.
trackDensity
;
nt_desc
.
xlayer
->
LinearDensity
=
desc
.
phys
.
linearDensity
;
nt_desc
.
xlayer
->
BCAFlag
=
desc
.
phys
.
bcaFlag
;
nt_desc
.
xlayer
->
StartingDataSector
=
OSReadBigInt32
(
&
desc
.
phys
.
zero1
,
0
)
;
nt_desc
.
xlayer
->
EndDataSector
=
OSReadBigInt32
(
&
desc
.
phys
.
zero2
,
0
)
;
nt_desc
.
xlayer
->
EndLayerZeroSector
=
OSReadBigInt32
(
&
desc
.
phys
.
zero3
,
0
)
;
nt_desc
.
xlayer
->
StartingDataSector
=
*
(
DWORD
*
)
&
desc
.
phys
.
zero1
;
nt_desc
.
xlayer
->
EndDataSector
=
*
(
DWORD
*
)
&
desc
.
phys
.
zero2
;
nt_desc
.
xlayer
->
EndLayerZeroSector
=
*
(
DWORD
*
)
&
desc
.
phys
.
zero3
;
nt_desc
.
xlayer
->
Reserved5
=
0
;
nt_desc
.
xlayer
->
Reserved6
=
0
;
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