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
47d1fee7
Commit
47d1fee7
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: Fix controller number validation.
parent
3a59ac08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
winaspi32.c
dlls/wnaspi32/winaspi32.c
+3
-3
No files found.
dlls/wnaspi32/winaspi32.c
View file @
47d1fee7
...
...
@@ -109,7 +109,7 @@ ASPI_OpenDevice(SRB_ExecSCSICmd *prb)
}
LeaveCriticalSection
(
&
ASPI_CritSection
);
if
(
prb
->
SRB_HaId
>
ASPI_GetNumControllers
())
if
(
prb
->
SRB_HaId
>
=
ASPI_GetNumControllers
())
return
-
1
;
hc
=
ASPI_GetHCforController
(
prb
->
SRB_HaId
);
...
...
@@ -314,8 +314,8 @@ ASPI_ExecScsiCmd(SRB_ExecSCSICmd *lpPRB)
DWORD
SRB_Status
;
num_controllers
=
ASPI_GetNumControllers
();
if
(
lpPRB
->
SRB_HaId
>
num_controllers
)
{
WARN
(
"Failed: Wanted hostadapter %d, but we have only %d.
\n
"
,
if
(
lpPRB
->
SRB_HaId
>
=
num_controllers
)
{
WARN
(
"Failed: Wanted hostadapter
with index
%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