mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
[PORTCLS]
- Fix bug in the resource list object svn path=/trunk/; revision=47814
This commit is contained in:
parent
47904efaa6
commit
b1560aa3f4
|
@ -438,8 +438,8 @@ PcNewResourceSublist(
|
||||||
|
|
||||||
Parent = (CResourceList*)ParentList;
|
Parent = (CResourceList*)ParentList;
|
||||||
|
|
||||||
if (!Parent->m_TranslatedResourceList->List->PartialResourceList.Count ||
|
if (!Parent->m_TranslatedResourceList->List[0].PartialResourceList.Count ||
|
||||||
!Parent->m_UntranslatedResourceList->List->PartialResourceList.Count)
|
!Parent->m_UntranslatedResourceList->List[0].PartialResourceList.Count)
|
||||||
{
|
{
|
||||||
// parent list can't be empty
|
// parent list can't be empty
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
@ -467,8 +467,8 @@ PcNewResourceSublist(
|
||||||
RtlCopyMemory(NewList->m_UntranslatedResourceList, Parent->m_UntranslatedResourceList, sizeof(CM_RESOURCE_LIST));
|
RtlCopyMemory(NewList->m_UntranslatedResourceList, Parent->m_UntranslatedResourceList, sizeof(CM_RESOURCE_LIST));
|
||||||
|
|
||||||
// mark list as empty
|
// mark list as empty
|
||||||
NewList->m_TranslatedResourceList->List->PartialResourceList.Count = 0;
|
NewList->m_TranslatedResourceList->List[0].PartialResourceList.Count = 0;
|
||||||
NewList->m_UntranslatedResourceList->List->PartialResourceList.Count = 0;
|
NewList->m_UntranslatedResourceList->List[0].PartialResourceList.Count = 0;
|
||||||
// store members
|
// store members
|
||||||
NewList->m_OuterUnknown = OuterUnknown;
|
NewList->m_OuterUnknown = OuterUnknown;
|
||||||
NewList->m_PoolType = PoolType;
|
NewList->m_PoolType = PoolType;
|
||||||
|
|
Loading…
Reference in a new issue