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
8767ee3e
Commit
8767ee3e
authored
Jan 09, 2001
by
David Elliott
Committed by
Alexandre Julliard
Jan 09, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed usage of RegEnumValueA.
parent
87f98a58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
aspi.c
dlls/winaspi/aspi.c
+9
-3
No files found.
dlls/winaspi/aspi.c
View file @
8767ee3e
...
@@ -459,7 +459,7 @@ SCSI_MapHCtoController()
...
@@ -459,7 +459,7 @@ SCSI_MapHCtoController()
DWORD
disposition
;
DWORD
disposition
;
char
idstr
[
20
];
char
idstr
[
20
];
DWORD
cbIdStr
=
20
;
DWORD
cbIdStr
;
int
i
=
0
;
int
i
=
0
;
DWORD
type
=
0
;
DWORD
type
=
0
;
DWORD
error
;
DWORD
error
;
...
@@ -487,9 +487,15 @@ SCSI_MapHCtoController()
...
@@ -487,9 +487,15 @@ SCSI_MapHCtoController()
return
;
return
;
}
}
for
(
i
=
0
;
(
error
=
RegEnumValueA
(
hkeyScsi
,
i
,
idstr
,
&
cbIdStr
,
NULL
,
&
type
,
NULL
,
NULL
))
==
ERROR_SUCCESS
;
i
++
)
for
(
i
=
0
;
cbIdStr
=
sizeof
(
idstr
),
(
error
=
RegEnumValueA
(
hkeyScsi
,
i
,
idstr
,
&
cbIdStr
,
NULL
,
&
type
,
NULL
,
NULL
))
==
ERROR_SUCCESS
;
i
++
)
{
{
sscanf
(
idstr
,
"h%02dc%02dt%*02dd%*02d"
,
&
ha
,
&
chan
);
if
(
idstr
[
0
]
==
'\0'
)
continue
;
/* skip the default value */
if
(
sscanf
(
idstr
,
"h%02dc%02dt%*02dd%*02d"
,
&
ha
,
&
chan
)
!=
2
)
{
ERR
(
"incorrect reg. value %s
\n
"
,
debugstr_a
(
idstr
));
continue
;
}
if
(
last_ha
<
ha
)
if
(
last_ha
<
ha
)
{
/* Next HA */
{
/* Next HA */
last_ha
=
ha
;
last_ha
=
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