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
a3557272
Commit
a3557272
authored
Mar 28, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix some last errors for SetupGetLineByIndex.
parent
50e81d0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
parser.c
dlls/setupapi/parser.c
+1
-2
parser.c
dlls/setupapi/tests/parser.c
+0
-1
No files found.
dlls/setupapi/parser.c
View file @
a3557272
...
...
@@ -1311,11 +1311,9 @@ BOOL WINAPI SetupGetLineByIndexW( HINF hinf, PCWSTR section, DWORD index, INFCON
struct
inf_file
*
file
=
hinf
;
int
section_index
;
SetLastError
(
ERROR_SECTION_NOT_FOUND
);
for
(
file
=
hinf
;
file
;
file
=
file
->
next
)
{
if
((
section_index
=
find_section
(
file
,
section
))
==
-
1
)
continue
;
SetLastError
(
ERROR_LINE_NOT_FOUND
);
if
(
index
<
file
->
sections
[
section_index
]
->
nb_lines
)
{
context
->
Inf
=
hinf
;
...
...
@@ -1330,6 +1328,7 @@ BOOL WINAPI SetupGetLineByIndexW( HINF hinf, PCWSTR section, DWORD index, INFCON
index
-=
file
->
sections
[
section_index
]
->
nb_lines
;
}
TRACE
(
"(%p,%s) not found
\n
"
,
hinf
,
debugstr_w
(
section
)
);
SetLastError
(
ERROR_LINE_NOT_FOUND
);
return
FALSE
;
}
...
...
dlls/setupapi/tests/parser.c
View file @
a3557272
...
...
@@ -571,7 +571,6 @@ static void test_GLE(void)
SetLastError
(
0xdeadbeef
);
retb
=
SetupGetLineByIndexA
(
hinf
,
"ImNotThere"
,
1
,
&
context
);
ok
(
!
retb
,
"Expected failure
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_LINE_NOT_FOUND
,
"Expected ERROR_LINE_NOT_FOUND, got %08x
\n
"
,
GetLastError
());
...
...
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