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
4a992fec
Commit
4a992fec
authored
Jul 15, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Jul 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a registry key leak.
parent
bebee86d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
action.c
dlls/msi/action.c
+10
-8
No files found.
dlls/msi/action.c
View file @
4a992fec
...
...
@@ -2973,13 +2973,17 @@ static void delete_key( const MSICOMPONENT *comp, HKEY root, const WCHAR *path )
access
|=
get_registry_view
(
comp
);
if
(
!
(
subkey
=
strdupW
(
path
)))
return
;
for
(;;)
do
{
if
((
p
=
strrchrW
(
subkey
,
'\\'
)))
*
p
=
0
;
hkey
=
open_key
(
comp
,
root
,
subkey
,
FALSE
);
if
(
!
hkey
)
break
;
if
(
p
&&
p
[
1
])
if
((
p
=
strrchrW
(
subkey
,
'\\'
)))
{
*
p
=
0
;
if
(
!
p
[
1
])
continue
;
/* trailing backslash */
hkey
=
open_key
(
comp
,
root
,
subkey
,
FALSE
);
if
(
!
hkey
)
break
;
res
=
RegDeleteKeyExW
(
hkey
,
p
+
1
,
access
,
0
);
RegCloseKey
(
hkey
);
}
else
res
=
RegDeleteKeyExW
(
root
,
subkey
,
access
,
0
);
if
(
res
)
...
...
@@ -2987,9 +2991,7 @@ static void delete_key( const MSICOMPONENT *comp, HKEY root, const WCHAR *path )
TRACE
(
"failed to delete key %s (%d)
\n
"
,
debugstr_w
(
subkey
),
res
);
break
;
}
if
(
p
&&
p
[
1
])
RegCloseKey
(
hkey
);
else
break
;
}
}
while
(
p
);
msi_free
(
subkey
);
}
...
...
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