Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
7e4c1a20
Commit
7e4c1a20
authored
Jan 22, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Also remove the driver key in remove_device().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
00c8c270
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
devinst.c
dlls/setupapi/devinst.c
+2
-0
devinst.c
dlls/setupapi/tests/devinst.c
+8
-1
No files found.
dlls/setupapi/devinst.c
View file @
7e4c1a20
...
...
@@ -656,6 +656,8 @@ static void remove_device(struct device *device)
struct
device_iface
*
iface
;
HKEY
enum_key
;
delete_driver_key
(
device
);
LIST_FOR_EACH_ENTRY
(
iface
,
&
device
->
interfaces
,
struct
device_iface
,
entry
)
{
remove_device_iface
(
iface
);
...
...
dlls/setupapi/tests/devinst.c
View file @
7e4c1a20
...
...
@@ -828,15 +828,22 @@ todo_wine {
ok
(
key
==
INVALID_HANDLE_VALUE
,
"Expected failure.
\n
"
);
ok
(
GetLastError
()
==
ERROR_KEY_DOES_NOT_EXIST
,
"Got unexpected error %#x.
\n
"
,
GetLastError
());
RegCloseKey
(
class_key
);
key
=
SetupDiCreateDevRegKeyW
(
set
,
&
device
,
DICS_FLAG_GLOBAL
,
0
,
DIREG_DRV
,
NULL
,
NULL
);
ok
(
key
!=
INVALID_HANDLE_VALUE
,
"Failed to create device key, error %#x.
\n
"
,
GetLastError
());
RegCloseKey
(
key
);
ret
=
SetupDiRemoveDevice
(
set
,
&
device
);
ok
(
ret
,
"Failed to remove device, error %#x.
\n
"
,
GetLastError
());
SetupDiDestroyDeviceInfoList
(
set
);
res
=
RegOpenKeyA
(
class_key
,
driver_path
,
&
key
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Key should not exist.
\n
"
);
/* Vista+ deletes the key automatically. */
res
=
RegDeleteKeyA
(
HKEY_LOCAL_MACHINE
,
class_key_path
);
ok
(
!
res
||
res
==
ERROR_FILE_NOT_FOUND
,
"Failed to delete class key, error %u.
\n
"
,
res
);
RegCloseKey
(
class_key
);
}
static
void
test_register_device_iface
(
void
)
...
...
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