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
fa823476
Commit
fa823476
authored
Nov 30, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Completely remove unregistered device interfaces.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ff98740
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
devinst.c
dlls/setupapi/devinst.c
+1
-1
devinst.c
dlls/setupapi/tests/devinst.c
+0
-7
No files found.
dlls/setupapi/devinst.c
View file @
fa823476
...
...
@@ -594,7 +594,7 @@ static void SETUPDI_RemoveDevice(struct device *device)
{
list_remove
(
&
iface
->
entry
);
if
(
device
->
phantom
)
RegDeleteKeyW
(
iface
->
refstr_key
,
emptyW
);
remove_device_iface
(
iface
);
RegCloseKey
(
iface
->
refstr_key
);
RegCloseKey
(
iface
->
class_key
);
heap_free
(
iface
->
refstr
);
...
...
dlls/setupapi/tests/devinst.c
View file @
fa823476
...
...
@@ -670,12 +670,6 @@ static void test_device_iface_detail(void)
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'E'
,
'n'
,
'u'
,
'm'
,
'\\'
,
'R'
,
'o'
,
'o'
,
't'
,
'\\'
,
'L'
,
'E'
,
'G'
,
'A'
,
'C'
,
'Y'
,
'_'
,
'B'
,
'O'
,
'G'
,
'U'
,
'S'
,
0
};
static
const
WCHAR
devclass
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'e'
,
's'
,
'\\'
,
'{'
,
'6'
,
'a'
,
'5'
,
'5'
,
'b'
,
'5'
,
'a'
,
'4'
,
'-'
,
'3'
,
'f'
,
'6'
,
'5'
,
'-'
,
'1'
,
'1'
,
'd'
,
'b'
,
'-'
,
'b'
,
'7'
,
'0'
,
'4'
,
'-'
,
'0'
,
'0'
,
'1'
,
'1'
,
'9'
,
'5'
,
'5'
,
'c'
,
'2'
,
'b'
,
'd'
,
'b'
,
'}'
,
0
};
static
const
char
path
[]
=
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}"
;
SP_DEVICE_INTERFACE_DETAIL_DATA_A
*
detail
;
SP_DEVICE_INTERFACE_DATA
iface
=
{
sizeof
(
iface
)};
...
...
@@ -750,7 +744,6 @@ static void test_device_iface_detail(void)
/* remove once Wine is fixed */
devinst_RegDeleteTreeW
(
HKEY_LOCAL_MACHINE
,
bogus
);
devinst_RegDeleteTreeW
(
HKEY_LOCAL_MACHINE
,
devclass
);
}
static
void
test_device_key
(
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