mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[NTOS:IO] Do not crash when calling IopLegacyResourceAllocation with NULL ResourceRequirements
This commit is contained in:
parent
88839d9726
commit
9967d9aa4c
|
@ -920,6 +920,15 @@ IopLegacyResourceAllocation(IN ARBITER_REQUEST_SOURCE AllocationType,
|
||||||
|
|
||||||
DPRINT1("IopLegacyResourceAllocation is halfplemented!\n");
|
DPRINT1("IopLegacyResourceAllocation is halfplemented!\n");
|
||||||
|
|
||||||
|
if (!ResourceRequirements)
|
||||||
|
{
|
||||||
|
/* We can get there by calling IoAssignResources() with RequestedResources = NULL.
|
||||||
|
* TODO: not sure what we should do, but we shouldn't crash.
|
||||||
|
* */
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
Status = IopFixupResourceListWithRequirements(ResourceRequirements,
|
Status = IopFixupResourceListWithRequirements(ResourceRequirements,
|
||||||
AllocatedResources);
|
AllocatedResources);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Reference in a new issue