mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS:IO] Do not crash when calling IopLegacyResourceAllocation with NULL ResourceRequirements
This commit is contained in:
parent
88839d9726
commit
9967d9aa4c
1 changed files with 9 additions and 0 deletions
|
@ -920,6 +920,15 @@ IopLegacyResourceAllocation(IN ARBITER_REQUEST_SOURCE AllocationType,
|
|||
|
||||
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,
|
||||
AllocatedResources);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue