[ros-diffs] [hpoussin] 32196: Fix for the fix
hpoussin at svn.reactos.org
hpoussin at svn.reactos.org
Thu Feb 7 20:58:32 CET 2008
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?rev=32196&r1=32195&r2=32196&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list