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
c9308b8d
Commit
c9308b8d
authored
Sep 12, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Sep 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Recursively remove any subkeys before calling NtDeleteKey().
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
19d57982
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
install.c
dlls/setupapi/install.c
+5
-1
install.c
dlls/setupapi/tests/install.c
+0
-1
No files found.
dlls/setupapi/install.c
View file @
c9308b8d
...
...
@@ -320,7 +320,11 @@ static BOOL do_reg_operation( HKEY hkey, const WCHAR *value, INFCONTEXT *context
}
else
RegDeleteValueW
(
hkey
,
value
);
}
else
NtDeleteKey
(
hkey
);
else
{
RegDeleteTreeW
(
hkey
,
NULL
);
NtDeleteKey
(
hkey
);
}
return
TRUE
;
}
...
...
dlls/setupapi/tests/install.c
View file @
c9308b8d
...
...
@@ -174,7 +174,6 @@ static void test_registry(void)
/* Check if the registry key is recursively deleted */
res
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
setupapitest"
,
&
key
);
todo_wine
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Didn't expect the registry key to exist
\n
"
);
/* Just in case */
if
(
res
==
ERROR_SUCCESS
)
...
...
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