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
9392aaa1
Commit
9392aaa1
authored
Jun 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Send PnP IRPs to the top of the device stack.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4820d9d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pnp.c
dlls/ntoskrnl.exe/pnp.c
+6
-0
No files found.
dlls/ntoskrnl.exe/pnp.c
View file @
9392aaa1
...
...
@@ -176,6 +176,8 @@ static NTSTATUS get_device_id( DEVICE_OBJECT *device, BUS_QUERY_ID_TYPE type, WC
IO_STATUS_BLOCK
irp_status
;
IRP
*
irp
;
device
=
IoGetAttachedDevice
(
device
);
if
(
!
(
irp
=
IoBuildSynchronousFsdRequest
(
IRP_MJ_PNP
,
device
,
NULL
,
0
,
NULL
,
NULL
,
&
irp_status
)))
return
STATUS_NO_MEMORY
;
...
...
@@ -192,6 +194,8 @@ static NTSTATUS send_pnp_irp( DEVICE_OBJECT *device, UCHAR minor )
IO_STATUS_BLOCK
irp_status
;
IRP
*
irp
;
device
=
IoGetAttachedDevice
(
device
);
if
(
!
(
irp
=
IoBuildSynchronousFsdRequest
(
IRP_MJ_PNP
,
device
,
NULL
,
0
,
NULL
,
NULL
,
&
irp_status
)))
return
STATUS_NO_MEMORY
;
...
...
@@ -291,6 +295,8 @@ static NTSTATUS send_power_irp( DEVICE_OBJECT *device, DEVICE_POWER_STATE power
IO_STACK_LOCATION
*
irpsp
;
IRP
*
irp
;
device
=
IoGetAttachedDevice
(
device
);
if
(
!
(
irp
=
IoBuildSynchronousFsdRequest
(
IRP_MJ_POWER
,
device
,
NULL
,
0
,
NULL
,
NULL
,
&
irp_status
)))
return
STATUS_NO_MEMORY
;
...
...
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