projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTOS:IO] In IopSynchronousCall first check IrpStack->MajorFunction before checking...
[reactos.git]
/
ntoskrnl
/
io
/
pnpmgr
/
pnpmgr.c
diff --git
a/ntoskrnl/io/pnpmgr/pnpmgr.c
b/ntoskrnl/io/pnpmgr/pnpmgr.c
index
e5530c6
..
f204878
100644
(file)
--- a/
ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/
ntoskrnl/io/pnpmgr/pnpmgr.c
@@
-1441,7
+1441,8
@@
IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
Irp->IoStatus.Information = IoStatusBlock.Information = 0;
/* Special case for IRP_MN_FILTER_RESOURCE_REQUIREMENTS */
Irp->IoStatus.Information = IoStatusBlock.Information = 0;
/* Special case for IRP_MN_FILTER_RESOURCE_REQUIREMENTS */
- if (IoStackLocation->MinorFunction == IRP_MN_FILTER_RESOURCE_REQUIREMENTS)
+ if ((IoStackLocation->MajorFunction == IRP_MJ_PNP) &&
+ (IoStackLocation->MinorFunction == IRP_MN_FILTER_RESOURCE_REQUIREMENTS))
{
/* Copy the resource requirements list into the IOSB */
Irp->IoStatus.Information =
{
/* Copy the resource requirements list into the IOSB */
Irp->IoStatus.Information =