Fix for ToString optional "length" param

date	2001.07.11.20.54.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:07:31 +00:00
parent e3883b9389
commit cc3ed183b0

View File

@ -1,8 +1,8 @@
/******************************************************************************
*
* Module Name: asloperands - AML opcode generation
* $Revision: 1.23 $
* Module Name: asloperands - AML operand processing
* $Revision: 1.25 $
*
*****************************************************************************/
@ -686,13 +686,21 @@ OpnDoPackage (
}
if (!PackageLength)
/*
* If not a variable-length package, check for a zero
* package length
*/
if ((PackageLengthNode->ParseOpcode == INTEGER) ||
(PackageLengthNode->ParseOpcode == DEFAULT_ARG))
{
/* No length AND no items -- issue a warning */
if (!PackageLength)
{
/* No length AND no items -- issue a warning */
AslError (ASL_WARNING, ASL_MSG_PACKAGE_LENGTH, PackageLengthNode, NULL);
AslError (ASL_WARNING, ASL_MSG_PACKAGE_LENGTH, PackageLengthNode, NULL);
/* But go ahead and put the buffer length of zero into the AML */
/* But go ahead and put the buffer length of zero into the AML */
}
}