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
1161d0e1
Commit
1161d0e1
authored
Nov 01, 2007
by
Rok Mandeljc
Committed by
Alexandre Julliard
Nov 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wnaspi32: Do the command dumping only after device has been verified.
parent
084636c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
winaspi32.c
dlls/wnaspi32/winaspi32.c
+12
-12
No files found.
dlls/wnaspi32/winaspi32.c
View file @
1161d0e1
...
...
@@ -313,6 +313,18 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
int
fd
;
DWORD
SRB_Status
;
num_controllers
=
ASPI_GetNumControllers
();
if
(
lpPRB
->
SRB_HaId
>
num_controllers
)
{
WARN
(
"Failed: Wanted hostadapter %d, but we have only %d.
\n
"
,
lpPRB
->
SRB_HaId
,
num_controllers
);
return
WNASPI32_DoPosting
(
lpPRB
,
SS_INVALID_HA
);
}
fd
=
ASPI_OpenDevice
(
lpPRB
);
if
(
fd
==
-
1
)
{
return
WNASPI32_DoPosting
(
lpPRB
,
SS_NO_DEVICE
);
}
/* FIXME: hackmode */
#define MAKE_TARGET_TO_HOST(lpPRB) \
if (!TARGET_TO_HOST(lpPRB)) { \
...
...
@@ -345,18 +357,6 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
}
ASPI_DebugPrintCmd
(
lpPRB
);
num_controllers
=
ASPI_GetNumControllers
();
if
(
lpPRB
->
SRB_HaId
>
num_controllers
)
{
WARN
(
"Failed: Wanted hostadapter %d, but we have only %d.
\n
"
,
lpPRB
->
SRB_HaId
,
num_controllers
);
return
WNASPI32_DoPosting
(
lpPRB
,
SS_INVALID_HA
);
}
fd
=
ASPI_OpenDevice
(
lpPRB
);
if
(
fd
==
-
1
)
{
return
WNASPI32_DoPosting
(
lpPRB
,
SS_NO_DEVICE
);
}
sg_hd
=
NULL
;
sg_reply_hdr
=
NULL
;
...
...
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