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
e56e4f97
Commit
e56e4f97
authored
Aug 20, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Dereference the device children in IoDeleteDevice().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6460f72d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+9
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
e56e4f97
...
...
@@ -1628,9 +1628,17 @@ void WINAPI IoDeleteDevice( DEVICE_OBJECT *device )
{
struct
wine_device
*
wine_device
=
CONTAINING_RECORD
(
device
,
struct
wine_device
,
device_obj
);
DEVICE_OBJECT
**
prev
=
&
device
->
DriverObject
->
DeviceObject
;
DEVICE_RELATIONS
*
children
;
unsigned
int
i
;
while
(
*
prev
&&
*
prev
!=
device
)
prev
=
&
(
*
prev
)
->
NextDevice
;
if
(
*
prev
)
*
prev
=
(
*
prev
)
->
NextDevice
;
ExFreePool
(
wine_device
->
children
);
if
((
children
=
wine_device
->
children
))
{
for
(
i
=
0
;
i
<
children
->
Count
;
++
i
)
ObDereferenceObject
(
children
->
Objects
[
i
]
);
ExFreePool
(
children
);
}
ObDereferenceObject
(
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