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
cb7de15e
Commit
cb7de15e
authored
Jun 29, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A workaround for missing struct request_sense on FreeBSD.
parent
d494c3ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
cdrom.c
dlls/ntdll/cdrom.c
+8
-9
No files found.
dlls/ntdll/cdrom.c
View file @
cb7de15e
...
...
@@ -1416,7 +1416,11 @@ static NTSTATUS CDROM_ScsiPassThroughDirect(int fd, PSCSI_PASS_THROUGH_DIRECT pP
if
(
pPacket
->
CdbLength
>
16
)
return
STATUS_INVALID_PARAMETER
;
#ifdef SENSEBUFLEN
if
(
pPacket
->
SenseInfoLength
>
SENSEBUFLEN
)
#else
if
(
pPacket
->
SenseInfoLength
>
sizeof
(
struct
request_sense
))
#endif
return
STATUS_INVALID_PARAMETER
;
if
(
pPacket
->
DataTransferLength
>
0
&&
!
pPacket
->
DataBuffer
)
...
...
@@ -1531,7 +1535,11 @@ static NTSTATUS CDROM_ScsiPassThrough(int fd, PSCSI_PASS_THROUGH pPacket)
if
(
pPacket
->
CdbLength
>
16
)
return
STATUS_INVALID_PARAMETER
;
#ifdef SENSEBUFLEN
if
(
pPacket
->
SenseInfoLength
>
SENSEBUFLEN
)
#else
if
(
pPacket
->
SenseInfoLength
>
sizeof
(
struct
request_sense
))
#endif
return
STATUS_INVALID_PARAMETER
;
if
(
pPacket
->
DataTransferLength
>
0
&&
pPacket
->
DataBufferOffset
<
sizeof
(
SCSI_PASS_THROUGH
))
...
...
@@ -1576,15 +1584,6 @@ static NTSTATUS CDROM_ScsiPassThrough(int fd, PSCSI_PASS_THROUGH pPacket)
#elif defined HAVE_SCSIREQ_T_CMD
if
(
pPacket
->
Length
<
sizeof
(
SCSI_PASS_THROUGH
))
return
STATUS_BUFFER_TOO_SMALL
;
if
(
pPacket
->
CdbLength
>
12
)
return
STATUS_INVALID_PARAMETER
;
if
(
pPacket
->
SenseInfoLength
>
SENSEBUFLEN
)
return
STATUS_INVALID_PARAMETER
;
memset
(
&
cmd
,
0
,
sizeof
(
cmd
));
memcpy
(
&
(
cmd
.
cmd
),
&
(
pPacket
->
Cdb
),
pPacket
->
CdbLength
);
...
...
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