mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
Fix for the fix
svn path=/trunk/; revision=32196
This commit is contained in:
@@ -1316,7 +1316,6 @@ IopAssignDeviceResources(
|
||||
}
|
||||
|
||||
Size = sizeof(CM_RESOURCE_LIST) + ResourceList->Count * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR);
|
||||
*pRequiredSize = Size;
|
||||
DeviceNode->ResourceList = ExAllocatePool(PagedPool, Size);
|
||||
if (!DeviceNode->ResourceList)
|
||||
{
|
||||
@@ -1454,6 +1453,7 @@ IopAssignDeviceResources(
|
||||
|
||||
DeviceNode->ResourceList->List[0].PartialResourceList.Count = NumberOfResources;
|
||||
|
||||
*pRequiredSize = Size;
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
ByeBye:
|
||||
@@ -1462,6 +1462,7 @@ ByeBye:
|
||||
ExFreePool(DeviceNode->ResourceList);
|
||||
DeviceNode->ResourceList = NULL;
|
||||
}
|
||||
*pRequiredSize = 0;
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user