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
8be4e853
Commit
8be4e853
authored
Jul 09, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid crash in SetupCloseInfFile.
parent
9dedfd71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
parser.c
dlls/setupapi/parser.c
+1
-1
parser.c
dlls/setupapi/tests/parser.c
+5
-0
No files found.
dlls/setupapi/parser.c
View file @
8be4e853
...
...
@@ -1231,7 +1231,7 @@ void WINAPI SetupCloseInfFile( HINF hinf )
struct
inf_file
*
file
=
hinf
;
unsigned
int
i
;
if
(
!
file
)
return
;
if
(
!
hinf
||
(
hinf
==
INVALID_HANDLE_VALUE
)
)
return
;
for
(
i
=
0
;
i
<
file
->
nb_sections
;
i
++
)
HeapFree
(
GetProcessHeap
(),
0
,
file
->
sections
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
file
->
filename
);
...
...
dlls/setupapi/tests/parser.c
View file @
8be4e853
...
...
@@ -405,6 +405,11 @@ static void test_close_inf_file(void)
SetLastError
(
0xdeadbeef
);
SetupCloseInfFile
(
NULL
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetupCloseInfFile
(
INVALID_HANDLE_VALUE
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
}
static
const
char
*
contents
=
"[Version]
\n
"
...
...
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