[PORTCLS]

- Fix bug in the resource list object

svn path=/trunk/; revision=47814
This commit is contained in:
Johannes Anderwald 2010-06-20 21:17:43 +00:00
parent 47904efaa6
commit b1560aa3f4

View file

@ -438,8 +438,8 @@ PcNewResourceSublist(
Parent = (CResourceList*)ParentList;
if (!Parent->m_TranslatedResourceList->List->PartialResourceList.Count ||
!Parent->m_UntranslatedResourceList->List->PartialResourceList.Count)
if (!Parent->m_TranslatedResourceList->List[0].PartialResourceList.Count ||
!Parent->m_UntranslatedResourceList->List[0].PartialResourceList.Count)
{
// parent list can't be empty
return STATUS_INVALID_PARAMETER;
@ -467,8 +467,8 @@ PcNewResourceSublist(
RtlCopyMemory(NewList->m_UntranslatedResourceList, Parent->m_UntranslatedResourceList, sizeof(CM_RESOURCE_LIST));
// mark list as empty
NewList->m_TranslatedResourceList->List->PartialResourceList.Count = 0;
NewList->m_UntranslatedResourceList->List->PartialResourceList.Count = 0;
NewList->m_TranslatedResourceList->List[0].PartialResourceList.Count = 0;
NewList->m_UntranslatedResourceList->List[0].PartialResourceList.Count = 0;
// store members
NewList->m_OuterUnknown = OuterUnknown;
NewList->m_PoolType = PoolType;