Author: janderwald
Date: Sun Jun 20 21:17:43 2010
New Revision: 47814
URL:
http://svn.reactos.org/svn/reactos?rev=47814&view=rev
Log:
[PORTCLS]
- Fix bug in the resource list object
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/resource.cpp
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/resource.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/resource.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/resource.cpp [iso-8859-1] Sun Jun 20
21:17:43 2010
@@ -438,8 +438,8 @@
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 @@
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;