From 53e2364fd85f54ab5589814466d46577a4adb117 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 19:00:51 +0000 Subject: [PATCH] Better check for acpi objects date 99.09.27.21.14.00; author rmoore1; state Exp; --- source/components/utilities/utalloc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/components/utilities/utalloc.c b/source/components/utilities/utalloc.c index 8a3b39942..67f07f193 100644 --- a/source/components/utilities/utalloc.c +++ b/source/components/utilities/utalloc.c @@ -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"));