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
c54219fb
Commit
c54219fb
authored
Oct 18, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Do not leak a HKEY when RegQueryValueEx failed.
parent
44fd06f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
install.c
dlls/msi/tests/install.c
+6
-2
No files found.
dlls/msi/tests/install.c
View file @
c54219fb
...
...
@@ -1006,12 +1006,16 @@ static BOOL get_program_files_dir(LPSTR buf, LPSTR buf2)
return
FALSE
;
size
=
MAX_PATH
;
if
(
RegQueryValueEx
(
hkey
,
"ProgramFilesDir"
,
0
,
&
type
,
(
LPBYTE
)
buf
,
&
size
))
if
(
RegQueryValueExA
(
hkey
,
"ProgramFilesDir"
,
0
,
&
type
,
(
LPBYTE
)
buf
,
&
size
))
{
RegCloseKey
(
hkey
);
return
FALSE
;
}
size
=
MAX_PATH
;
if
(
RegQueryValueEx
(
hkey
,
"CommonFilesDir"
,
0
,
&
type
,
(
LPBYTE
)
buf2
,
&
size
))
if
(
RegQueryValueExA
(
hkey
,
"CommonFilesDir"
,
0
,
&
type
,
(
LPBYTE
)
buf2
,
&
size
))
{
RegCloseKey
(
hkey
);
return
FALSE
;
}
RegCloseKey
(
hkey
);
return
TRUE
;
...
...
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