Fix for ALIAS

date	2002.10.21.21.49.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:08:13 +00:00
parent 24bbdd455b
commit 03864ce615

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: aslopt- Compiler optimizations
* $Revision: 1.5 $
* $Revision: 1.6 $
*
*****************************************************************************/
@ -748,8 +748,20 @@ OptOptimizeNamePath (
if (Flags & AML_NAMED)
{
Op->Asl.Child->Asl.Value.String = NewPath;
Op->Asl.Child->Asl.AmlLength = ACPI_STRLEN (NewPath);
if (Op->Asl.AmlOpcode == AML_ALIAS_OP)
{
/*
* ALIAS is the only oddball opcode, the name declaration
* (alias name) is the second operand
*/
Op->Asl.Child->Asl.Next->Asl.Value.String = NewPath;
Op->Asl.Child->Asl.Next->Asl.AmlLength = ACPI_STRLEN (NewPath);
}
else
{
Op->Asl.Child->Asl.Value.String = NewPath;
Op->Asl.Child->Asl.AmlLength = ACPI_STRLEN (NewPath);
}
}
else if (Flags & AML_CREATE)
{