2020-10-19 18:24:09 +00:00
|
|
|
Index: acpica-unix2-20200925/source/compiler/aslparseop.c
|
2018-03-06 22:25:45 +00:00
|
|
|
===================================================================
|
2020-10-19 18:24:09 +00:00
|
|
|
--- acpica-unix2-20200925.orig/source/compiler/aslparseop.c
|
|
|
|
+++ acpica-unix2-20200925/source/compiler/aslparseop.c
|
|
|
|
@@ -285,7 +285,16 @@ TrCreateValuedLeafOp (
|
2018-01-09 21:30:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
Op = TrAllocateOp (ParseOpcode);
|
|
|
|
- Op->Asl.Value.Integer = Value;
|
|
|
|
+ if (ParseOpcode == PARSEOP_NAMESTRING ||
|
|
|
|
+ ParseOpcode == PARSEOP_NAMESEG ||
|
|
|
|
+ ParseOpcode == PARSEOP_STRING_LITERAL)
|
|
|
|
+ {
|
|
|
|
+ Op->Asl.Value.String = (char *) Value;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ Op->Asl.Value.Integer = Value;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
DbgPrint (ASL_PARSE_OUTPUT,
|
|
|
|
"\nCreateValuedLeafOp Ln/Col %u/%u NewOp %p "
|