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
6c0fc420
Commit
6c0fc420
authored
Nov 07, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a bunch of tests for the INF parser.
parent
e41ddd05
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
1 deletion
+4
-1
parser.c
dlls/setupapi/parser.c
+2
-1
.cvsignore
dlls/setupapi/tests/.cvsignore
+1
-0
Makefile.in
dlls/setupapi/tests/Makefile.in
+1
-0
parser.c
dlls/setupapi/tests/parser.c
+0
-0
No files found.
dlls/setupapi/parser.c
View file @
6c0fc420
...
...
@@ -524,7 +524,7 @@ static struct field *add_field_from_token( struct parser *parser, int is_key )
{
if
(
parser
->
cur_section
==
-
1
)
/* got a line before the first section */
{
parser
->
error
=
ERROR_
WRONG_INF_STYL
E
;
parser
->
error
=
ERROR_
EXPECTED_SECTION_NAM
E
;
return
NULL
;
}
if
(
!
(
parser
->
line
=
add_line
(
parser
->
file
,
parser
->
cur_section
)))
goto
error
;
...
...
@@ -972,6 +972,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, UINT *err
if
(
!
strcmpiW
(
field
->
text
,
Windows95
))
goto
done
;
}
}
if
(
error_line
)
*
error_line
=
0
;
err
=
ERROR_WRONG_INF_STYLE
;
}
...
...
dlls/setupapi/tests/.cvsignore
View file @
6c0fc420
Makefile
parser.ok
stringtable.ok
testlist.c
dlls/setupapi/tests/Makefile.in
View file @
6c0fc420
...
...
@@ -6,6 +6,7 @@ TESTDLL = setupapi.dll
IMPORTS
=
setupapi kernel32
CTESTS
=
\
parser.c
\
stringtable.c
@MAKE_TEST_RULES@
...
...
dlls/setupapi/tests/parser.c
0 → 100644
View file @
6c0fc420
This diff is collapsed.
Click to expand it.
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