Better check for acpi objects

date	99.09.27.21.14.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:00:51 +00:00
parent 22f1a85e78
commit 53e2364fd8

View File

@ -426,10 +426,13 @@ CmDumpCurrentAllocations (
/* Most of the elements will be internal objects. */
if (Element->Size == sizeof (ACPI_OBJECT_INTERNAL))
if (Element->Size >= sizeof (ACPI_OBJECT_Common))
{
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, (" Type %s",
Gbl_NsTypeNames[((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.Type]));
if (((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.DataType == DESC_TYPE_ACPI_OBJ)
{
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, (" Type %s",
Gbl_NsTypeNames[((ACPI_OBJECT_INTERNAL *)(Element->Address))->Common.Type]));
}
}
DEBUG_PRINT_RAW (TRACE_ALLOCATIONS | TRACE_TABLES, ("\n"));