From 79f55526f568014a3d7c6664d9eebb8a6ed49ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 7 Feb 2008 19:58:31 +0000 Subject: [PATCH] Fix for the fix svn path=/trunk/; revision=32196 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 29842a5ca87..bce14a856f8 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -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; }