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
0427ccb1
Commit
0427ccb1
authored
Jul 05, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineusb.sys: Move the event threads to IRP_MN_START_DEVICE.
To correspond with the shutdown in IRP_MN_REMOVE_DEVICE.
parent
92ae93d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wineusb.c
dlls/wineusb.sys/wineusb.c
+3
-3
No files found.
dlls/wineusb.sys/wineusb.c
View file @
0427ccb1
...
...
@@ -487,6 +487,9 @@ static NTSTATUS fdo_pnp(IRP *irp)
}
case
IRP_MN_START_DEVICE
:
libusb_event_thread
=
CreateThread
(
NULL
,
0
,
libusb_event_thread_proc
,
NULL
,
0
,
NULL
);
event_thread
=
CreateThread
(
NULL
,
0
,
event_thread_proc
,
NULL
,
0
,
NULL
);
if
((
ret
=
libusb_hotplug_register_callback
(
NULL
,
LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED
|
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT
,
LIBUSB_HOTPLUG_ENUMERATE
,
LIBUSB_HOTPLUG_MATCH_ANY
,
LIBUSB_HOTPLUG_MATCH_ANY
,
...
...
@@ -1154,9 +1157,6 @@ NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
return
STATUS_UNSUCCESSFUL
;
}
libusb_event_thread
=
CreateThread
(
NULL
,
0
,
libusb_event_thread_proc
,
NULL
,
0
,
NULL
);
event_thread
=
CreateThread
(
NULL
,
0
,
event_thread_proc
,
NULL
,
0
,
NULL
);
driver
->
DriverExtension
->
AddDevice
=
driver_add_device
;
driver
->
DriverUnload
=
driver_unload
;
driver
->
MajorFunction
[
IRP_MJ_PNP
]
=
driver_pnp
;
...
...
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