mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[PORTCLS]
* Fix a bug in PcNewResourceSublist which led to memory corruption. svn path=/trunk/; revision=55007
This commit is contained in:
parent
d2ce0487ef
commit
284faf3581
1 changed files with 2 additions and 2 deletions
|
@ -427,7 +427,7 @@ PcNewResourceSublist(
|
|||
#endif
|
||||
|
||||
/* Allocate resource list */
|
||||
NewList->m_TranslatedResourceList = (PCM_RESOURCE_LIST)AllocateItem(PoolType, sizeof(CM_RESOURCE_LIST), TAG_PORTCLASS);
|
||||
NewList->m_TranslatedResourceList = (PCM_RESOURCE_LIST)AllocateItem(PoolType, ResourceSize, TAG_PORTCLASS);
|
||||
if (!NewList->m_TranslatedResourceList)
|
||||
{
|
||||
/* No memory */
|
||||
|
@ -436,7 +436,7 @@ PcNewResourceSublist(
|
|||
}
|
||||
|
||||
/* Allocate resource list */
|
||||
NewList->m_UntranslatedResourceList = (PCM_RESOURCE_LIST)AllocateItem(PoolType, sizeof(CM_RESOURCE_LIST), TAG_PORTCLASS);
|
||||
NewList->m_UntranslatedResourceList = (PCM_RESOURCE_LIST)AllocateItem(PoolType, ResourceSize, TAG_PORTCLASS);
|
||||
if (!NewList->m_UntranslatedResourceList)
|
||||
{
|
||||
/* No memory */
|
||||
|
|
Loading…
Reference in a new issue