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
72298934
Commit
72298934
authored
Nov 13, 2018
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Move IoSetDeviceInterfaceState to PNP_RemoveDevice.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b31b764
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
device.c
dlls/hidclass.sys/device.c
+0
-11
pnp.c
dlls/hidclass.sys/pnp.c
+8
-0
No files found.
dlls/hidclass.sys/device.c
View file @
72298934
...
...
@@ -130,23 +130,12 @@ error:
void
HID_DeleteDevice
(
HID_MINIDRIVER_REGISTRATION
*
driver
,
DEVICE_OBJECT
*
device
)
{
NTSTATUS
status
;
BASE_DEVICE_EXTENSION
*
ext
;
LIST_ENTRY
*
entry
;
IRP
*
irp
;
ext
=
device
->
DeviceExtension
;
if
(
ext
->
link_name
.
Buffer
)
{
TRACE
(
"Delete link %s
\n
"
,
debugstr_w
(
ext
->
link_name
.
Buffer
));
IoSetDeviceInterfaceState
(
&
ext
->
link_name
,
FALSE
);
status
=
IoDeleteSymbolicLink
(
&
ext
->
link_name
);
if
(
status
!=
STATUS_SUCCESS
)
ERR
(
"Delete Symbolic Link failed (%x)
\n
"
,
status
);
}
if
(
ext
->
thread
)
{
SetEvent
(
ext
->
halt_event
);
...
...
dlls/hidclass.sys/pnp.c
View file @
72298934
...
...
@@ -212,9 +212,17 @@ NTSTATUS WINAPI PNP_AddDevice(DRIVER_OBJECT *driver, DEVICE_OBJECT *PDO)
NTSTATUS
PNP_RemoveDevice
(
minidriver
*
minidriver
,
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
BASE_DEVICE_EXTENSION
*
ext
=
device
->
DeviceExtension
;
hid_device
*
hiddev
;
NTSTATUS
rc
=
STATUS_NOT_SUPPORTED
;
rc
=
IoSetDeviceInterfaceState
(
&
ext
->
link_name
,
FALSE
);
if
(
rc
)
{
FIXME
(
"failed to disable interface %x
\n
"
,
rc
);
return
rc
;
}
if
(
irp
)
rc
=
minidriver
->
PNPDispatch
(
device
,
irp
);
HID_DeleteDevice
(
&
minidriver
->
minidriver
,
device
);
...
...
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