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
c48b372b
Commit
c48b372b
authored
Jul 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winaspi.dll16: Simplify the "pointer to start of array" idiom.
parent
917fe72b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
winaspi.c
dlls/winaspi.dll16/winaspi.c
+5
-5
No files found.
dlls/winaspi.dll16/winaspi.c
View file @
c48b372b
...
...
@@ -205,7 +205,7 @@ ASPI_DebugPrintCmd(SRB_ExecSCSICmd16 *prb, UINT16 mode)
TRACE
(
"LinkPointer %x
\n
"
,
prb
->
SRB_Rsvd1
);
TRACE
(
"CDB Length: %d
\n
"
,
prb
->
SRB_CDBLen
);
TRACE
(
"POST Proc: %x
\n
"
,
(
DWORD
)
prb
->
SRB_PostProc
);
cdb
=
&
prb
->
CDBByte
[
0
]
;
cdb
=
prb
->
CDBByte
;
if
(
TRACE_ON
(
aspi
))
{
TRACE
(
"CDB buffer["
);
...
...
@@ -225,7 +225,7 @@ ASPI_PrintSenseArea16(SRB_ExecSCSICmd16 *prb)
if
(
TRACE_ON
(
aspi
))
{
cdb
=
&
prb
->
CDBByte
[
0
]
;
cdb
=
prb
->
CDBByte
;
TRACE
(
"SenseArea["
);
for
(
i
=
0
;
i
<
prb
->
SRB_SenseLen
;
i
++
)
{
if
(
i
)
TRACE
(
","
);
...
...
@@ -288,7 +288,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
in_len
=
SCSI_OFF
+
lpPRB
->
SRB_CDBLen
+
lpPRB
->
SRB_BufLen
;
sg_hd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
in_len
);
memset
(
sg_hd
,
0
,
SCSI_OFF
);
memcpy
(
sg_hd
+
1
,
&
lpPRB
->
CDBByte
[
0
]
,
lpPRB
->
SRB_CDBLen
);
memcpy
(
sg_hd
+
1
,
lpPRB
->
CDBByte
,
lpPRB
->
SRB_CDBLen
);
if
(
lpPRB
->
SRB_BufLen
)
{
memcpy
(((
BYTE
*
)
sg_hd
)
+
SCSI_OFF
+
lpPRB
->
SRB_CDBLen
,
lpBuf
,
lpPRB
->
SRB_BufLen
);
}
...
...
@@ -298,7 +298,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
in_len
=
SCSI_OFF
+
lpPRB
->
SRB_CDBLen
;
sg_hd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
in_len
);
memset
(
sg_hd
,
0
,
SCSI_OFF
);
memcpy
(
sg_hd
+
1
,
&
lpPRB
->
CDBByte
[
0
]
,
lpPRB
->
SRB_CDBLen
);
memcpy
(
sg_hd
+
1
,
lpPRB
->
CDBByte
,
lpPRB
->
SRB_CDBLen
);
}
if
(
TARGET_TO_HOST
(
lpPRB
))
{
...
...
@@ -349,7 +349,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
int
sense_len
=
lpPRB
->
SRB_SenseLen
;
if
(
lpPRB
->
SRB_SenseLen
>
16
)
sense_len
=
16
;
memcpy
(
SENSE_BUFFER
(
lpPRB
),
&
sg_reply_hdr
->
sense_buffer
[
0
]
,
sense_len
);
memcpy
(
SENSE_BUFFER
(
lpPRB
),
sg_reply_hdr
->
sense_buffer
,
sense_len
);
}
...
...
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