mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fixed the size calculation of the resource list in IopSetDeviceInstanceData.
svn path=/trunk/; revision=11339
This commit is contained in:
parent
91ff1098cb
commit
5b5e2d9b00
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: pnpmgr.c,v 1.38 2004/10/19 19:37:45 navaraf Exp $
|
/* $Id: pnpmgr.c,v 1.39 2004/10/19 23:23:04 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -865,11 +865,11 @@ IopSetDeviceInstanceData(HANDLE InstanceKey,
|
||||||
/* Set 'BootConfig' value */
|
/* Set 'BootConfig' value */
|
||||||
if (DeviceNode->BootResourcesList != NULL)
|
if (DeviceNode->BootResourcesList != NULL)
|
||||||
{
|
{
|
||||||
ResCount = DeviceNode->BootResourcesList->List[0].PartialResourceList.Count;
|
ResCount = DeviceNode->BootResourcesList->Count;
|
||||||
if (ResCount != 0)
|
if (ResCount != 0)
|
||||||
{
|
{
|
||||||
ListSize = sizeof(CM_RESOURCE_LIST) +
|
ListSize = sizeof(CM_RESOURCE_LIST) +
|
||||||
((ResCount - 1) * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR));
|
((ResCount - 1) * sizeof(CM_FULL_RESOURCE_DESCRIPTOR));
|
||||||
|
|
||||||
RtlInitUnicodeString(&KeyName,
|
RtlInitUnicodeString(&KeyName,
|
||||||
L"BootConfig");
|
L"BootConfig");
|
||||||
|
|
Loading…
Reference in a new issue