projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Respect the fact, that the driver can return NULL-pointer, instead of a string having...
[reactos.git]
/
reactos
/
ntoskrnl
/
io
/
pnpmgr.c
diff --git
a/reactos/ntoskrnl/io/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr.c
index
d6d1f2a
..
4a1ecf8
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr.c
@@
-1857,7
+1857,7
@@
IopActionInterrogateDeviceStack(PDEVICE_NODE DeviceNode,
}
else
{
}
else
{
- DPRINT("IopInitiatePnpIrp() failed (Status %x)\n", Status);
+ DPRINT("IopInitiatePnpIrp() failed (Status %x)
or IoStatusBlock.Information=NULL
\n", Status);
DeviceNode->BootResources = NULL;
}
DeviceNode->BootResources = NULL;
}
@@
-1868,14
+1868,14
@@
IopActionInterrogateDeviceStack(PDEVICE_NODE DeviceNode,
&IoStatusBlock,
IRP_MN_QUERY_RESOURCE_REQUIREMENTS,
NULL);
&IoStatusBlock,
IRP_MN_QUERY_RESOURCE_REQUIREMENTS,
NULL);
- if (NT_SUCCESS(Status))
+ if (NT_SUCCESS(Status)
&& IoStatusBlock.Information
)
{
DeviceNode->ResourceRequirements =
(PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
}
else
{
{
DeviceNode->ResourceRequirements =
(PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
}
else
{
- DPRINT("IopInitiatePnpIrp() failed (Status %x)\n", Status);
+ DPRINT("IopInitiatePnpIrp() failed (Status %x)
or IoStatusBlock.Information=NULL
\n", Status);
DeviceNode->ResourceRequirements = NULL;
}
DeviceNode->ResourceRequirements = NULL;
}