From c54610fd9e6aed79bb69dd7a3e0f1d68caee7ca5 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 17:46:32 +0000 Subject: [PATCH] Fix for scope problem for aliased methods date 2004.03.26.22.32.00; author rmoore1; state Exp; --- source/components/executer/exresnte.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/components/executer/exresnte.c b/source/components/executer/exresnte.c index 54abb00f0..21b6d9ab3 100644 --- a/source/components/executer/exresnte.c +++ b/source/components/executer/exresnte.c @@ -2,7 +2,7 @@ /****************************************************************************** * * Module Name: exresnte - AML Interpreter object resolution - * $Revision: 1.63 $ + * $Revision: 1.65 $ * *****************************************************************************/ @@ -10,7 +10,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp. * All rights reserved. * * 2. License @@ -182,11 +182,12 @@ AcpiExResolveNodeToValue ( ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Entry=%p SourceDesc=%p [%s]\n", Node, SourceDesc, AcpiUtGetTypeName (EntryType))); - if (EntryType == ACPI_TYPE_LOCAL_ALIAS) + if ((EntryType == ACPI_TYPE_LOCAL_ALIAS) || + (EntryType == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { /* There is always exactly one level of indirection */ - Node = (ACPI_NAMESPACE_NODE *) Node->Object; + Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Node->Object); SourceDesc = AcpiNsGetAttachedObject (Node); EntryType = AcpiNsGetType ((ACPI_HANDLE) Node); *ObjectPtr = Node;