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
bce44161
Commit
bce44161
authored
Jun 26, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Jun 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix SetupCloseInfFile when a NULL handle is given, with tests.
parent
251d7688
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
parser.c
dlls/setupapi/parser.c
+2
-0
parser.c
dlls/setupapi/tests/parser.c
+8
-0
No files found.
dlls/setupapi/parser.c
View file @
bce44161
...
...
@@ -1220,6 +1220,8 @@ void WINAPI SetupCloseInfFile( HINF hinf )
struct
inf_file
*
file
=
hinf
;
unsigned
int
i
;
if
(
!
file
)
return
;
for
(
i
=
0
;
i
<
file
->
nb_sections
;
i
++
)
HeapFree
(
GetProcessHeap
(),
0
,
file
->
sections
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
file
->
filename
);
HeapFree
(
GetProcessHeap
(),
0
,
file
->
sections
);
...
...
dlls/setupapi/tests/parser.c
View file @
bce44161
...
...
@@ -387,10 +387,18 @@ static void test_key_names(void)
}
static
void
test_close_inf_file
(
void
)
{
SetLastError
(
0xdeadbeef
);
SetupCloseInfFile
(
NULL
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %ld
\n
"
,
GetLastError
());
}
START_TEST
(
parser
)
{
test_invalid_files
();
test_section_names
();
test_key_names
();
test_close_inf_file
();
DeleteFileA
(
tmpfile
);
}
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