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
3a59ac08
Commit
3a59ac08
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 -> H/C mapping.
parent
1161d0e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
aspi.c
dlls/wnaspi32/aspi.c
+4
-3
No files found.
dlls/wnaspi32/aspi.c
View file @
3a59ac08
...
...
@@ -181,7 +181,8 @@ DWORD ASPI_GetHCforController( int controller )
HKEY
hkeyScsi
,
hkeyPort
;
DWORD
i
=
0
,
numPorts
;
int
num_ha
=
controller
+
1
;
WCHAR
wPortName
[
11
];
WCHAR
wPortName
[
15
];
WCHAR
wBusName
[
15
];
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
wDevicemapScsi
,
0
,
KEY_QUERY_VALUE
|
KEY_ENUMERATE_SUB_KEYS
,
&
hkeyScsi
)
!=
ERROR_SUCCESS
)
...
...
@@ -212,7 +213,7 @@ DWORD ASPI_GetHCforController( int controller )
return
0xFFFFFFFF
;
}
if
(
RegEnumKeyW
(
hkeyPort
,
-
num_ha
,
w
PortName
,
sizeof
(
wPort
Name
))
!=
ERROR_SUCCESS
)
if
(
RegEnumKeyW
(
hkeyPort
,
-
num_ha
,
w
BusName
,
sizeof
(
wBus
Name
))
!=
ERROR_SUCCESS
)
{
ERR
(
"Failed to enumerate keys
\n
"
);
RegCloseKey
(
hkeyPort
);
...
...
@@ -220,7 +221,7 @@ DWORD ASPI_GetHCforController( int controller )
}
RegCloseKey
(
hkeyPort
);
return
(
(
--
i
)
<<
16
)
+
atoiW
(
&
wPort
Name
[
9
]);
return
(
atoiW
(
&
wPortName
[
9
])
<<
16
)
+
atoiW
(
&
wBus
Name
[
9
]);
}
int
SCSI_OpenDevice
(
int
h
,
int
c
,
int
t
,
int
d
)
...
...
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