projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTOSKRNL]
[reactos.git]
/
reactos
/
ntoskrnl
/
io
/
pnpmgr
/
pnpmgr.c
diff --git
a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
index
5d6c133
..
0213d04
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
@@
-163,7
+163,10
@@
IopStartDevice(
DPRINT("IopInitiatePnpIrp(IRP_MN_FILTER_RESOURCE_REQUIREMENTS) failed\n");
return Status;
}
DPRINT("IopInitiatePnpIrp(IRP_MN_FILTER_RESOURCE_REQUIREMENTS) failed\n");
return Status;
}
- DeviceNode->ResourceRequirements = (PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
+ else if (NT_SUCCESS(Status))
+ {
+ DeviceNode->ResourceRequirements = (PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
+ }
Status = IopAssignDeviceResources(DeviceNode, &RequiredLength);
if (NT_SUCCESS(Status))
Status = IopAssignDeviceResources(DeviceNode, &RequiredLength);
if (NT_SUCCESS(Status))