Fix for root node case.

date	2004.08.26.20.21.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:30:40 +00:00
parent 348750d818
commit 1a8c01128f

View File

@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: nsnames - Name manipulation and search
* $Revision: 1.83 $
* $Revision: 1.85 $
*
******************************************************************************/
@ -9,7 +9,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
@ -281,7 +281,12 @@ AcpiNsGetPathnameLength (
NextNode = AcpiNsGetParentNode (NextNode);
}
return (Size + 1);
if (!Size)
{
Size = 1; /* Root node case */
}
return (Size + 1); /* +1 for null string terminator */
}