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
1215bc80
Commit
1215bc80
authored
Jul 09, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineusb.sys: Fully initialize the device before adding it to the device list.
Do not rely on IoInvalidateDeviceRelations() to initialize the device; it's supposed to be asynchronous.
parent
73284ea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wineusb.c
dlls/wineusb.sys/wineusb.c
+4
-4
No files found.
dlls/wineusb.sys/wineusb.c
View file @
1215bc80
...
...
@@ -255,11 +255,7 @@ static void add_unix_device(struct unix_device *unix_device)
device
->
device_obj
=
device_obj
;
device
->
unix_device
=
unix_device
;
InitializeListHead
(
&
device
->
irp_list
);
EnterCriticalSection
(
&
wineusb_cs
);
list_add_tail
(
&
device_list
,
&
device
->
entry
);
device
->
removed
=
FALSE
;
LeaveCriticalSection
(
&
wineusb_cs
);
device
->
class
=
device_desc
.
bDeviceClass
;
device
->
subclass
=
device_desc
.
bDeviceSubClass
;
...
...
@@ -268,6 +264,10 @@ static void add_unix_device(struct unix_device *unix_device)
device
->
product
=
device_desc
.
idProduct
;
device
->
revision
=
device_desc
.
bcdDevice
;
EnterCriticalSection
(
&
wineusb_cs
);
list_add_tail
(
&
device_list
,
&
device
->
entry
);
LeaveCriticalSection
(
&
wineusb_cs
);
if
(
!
(
ret
=
libusb_get_active_config_descriptor
(
libusb_device
,
&
config_desc
)))
{
/* Create new devices for interfaces of composite devices.
...
...
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