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
084636c5
Commit
084636c5
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: Call ASPI_GetNumControllers() only once.
parent
a2a34bd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
winaspi32.c
dlls/wnaspi32/winaspi32.c
+6
-3
No files found.
dlls/wnaspi32/winaspi32.c
View file @
084636c5
...
...
@@ -308,6 +308,7 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
WORD
ret
;
DWORD
status
;
int
in_len
,
out_len
;
int
num_controllers
=
0
;
int
error_code
=
0
;
int
fd
;
DWORD
SRB_Status
;
...
...
@@ -343,9 +344,11 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
break
;
}
ASPI_DebugPrintCmd
(
lpPRB
);
if
(
lpPRB
->
SRB_HaId
>
ASPI_GetNumControllers
())
{
ERR
(
"Failed: Wanted hostadapter %d, but we have only %d.
\n
"
,
lpPRB
->
SRB_HaId
,
ASPI_GetNumControllers
()
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
);
}
...
...
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