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
12085e9b
Commit
12085e9b
authored
Mar 26, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed return value for SC_GET_DEV_TYPE.
parent
6d77d3a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
winaspi32.c
dlls/winaspi/winaspi32.c
+9
-4
No files found.
dlls/winaspi/winaspi32.c
View file @
12085e9b
...
...
@@ -474,6 +474,7 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
lpSRB
->
inquiry
.
HA_Unique
[
6
]
=
0x02
;
/* Maximum Transfer Length (128K, Byte> 4-7) */
FIXME
(
"ASPI: Partially implemented SC_HA_INQUIRY for adapter %d.
\n
"
,
lpSRB
->
inquiry
.
SRB_HaId
);
return
SS_COMP
;
case
SC_GET_DEV_TYPE
:
{
/* FIXME: We should return SS_NO_DEVICE if the device is not configured */
/* FIXME: We should return SS_INVALID_HA if HostAdapter!=0 */
...
...
@@ -496,13 +497,17 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
/* FIXME: handle lun */
tmpsrb
.
cmd
.
CDBByte
[
4
]
=
sizeof
(
inqbuf
);
tmpsrb
.
cmd
.
SRB_CDBLen
=
6
;
ret
=
ASPI_ExecScsiCmd
(
&
tmpsrb
.
cmd
);
#define X(x) lpSRB->devtype.SRB_##x = tmpsrb.cmd.SRB_##x
X
(
Status
);
#undef X
lpSRB
->
devtype
.
SRB_Status
=
tmpsrb
.
cmd
.
SRB_Status
;
lpSRB
->
devtype
.
SRB_DeviceType
=
inqbuf
[
0
]
&
0x1f
;
TRACE
(
"returning devicetype %d for target %d
\n
"
,
inqbuf
[
0
]
&
0x1f
,
tmpsrb
.
cmd
.
SRB_Target
);
return
ret
;
if
(
ret
!=
SS_PENDING
)
/* Any error is passed down directly */
return
ret
;
/* FIXME: knows that the command is finished already, pass final Status */
return
tmpsrb
.
cmd
.
SRB_Status
;
}
case
SC_EXEC_SCSI_CMD
:
return
ASPI_ExecScsiCmd
(
&
lpSRB
->
cmd
);
...
...
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