Author: hpoussin Date: Thu Feb 7 22:58:31 2008 New Revision: 32196
URL: http://svn.reactos.org/svn/reactos?rev=32196&view=rev Log: Fix for the fix
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c Thu Feb 7 22:58:31 2008 @@ -1316,7 +1316,6 @@ }
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 @@
DeviceNode->ResourceList->List[0].PartialResourceList.Count = NumberOfResources;
+ *pRequiredSize = Size; return STATUS_SUCCESS;
ByeBye: @@ -1462,6 +1462,7 @@ ExFreePool(DeviceNode->ResourceList); DeviceNode->ResourceList = NULL; } + *pRequiredSize = 0; return Status; }