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
cb796441
Commit
cb796441
authored
Feb 01, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Do not destroy the device list in enumerate_new_device().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd27f3ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
pnp.c
dlls/ntoskrnl.exe/pnp.c
+0
-4
No files found.
dlls/ntoskrnl.exe/pnp.c
View file @
cb796441
...
...
@@ -336,7 +336,6 @@ static void enumerate_new_device( DEVICE_OBJECT *device, HDEVINFO set )
&&
!
SetupDiOpenDeviceInfoW
(
set
,
device_instance_id
,
NULL
,
0
,
&
sp_device
))
{
ERR
(
"Failed to create or open device %s, error %#x.
\n
"
,
debugstr_w
(
device_instance_id
),
GetLastError
());
SetupDiDestroyDeviceInfoList
(
set
);
return
;
}
...
...
@@ -353,10 +352,7 @@ static void enumerate_new_device( DEVICE_OBJECT *device, HDEVINFO set )
}
if
(
need_driver
&&
!
install_device_driver
(
device
,
set
,
&
sp_device
))
{
SetupDiDestroyDeviceInfoList
(
set
);
return
;
}
start_device
(
device
,
set
,
&
sp_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