Fix linked list loops

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8377 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2009-05-22 23:31:56 +00:00
parent f680f867ce
commit 323f53ff7b
1 changed files with 3 additions and 3 deletions

View File

@ -1839,7 +1839,7 @@ ShellCommandLineGetFlag (
// //
// enumerate through the list of parametrs // enumerate through the list of parametrs
// //
for (Node = GetFirstNode(CheckPackage) ; Node != CheckPackage ; Node = GetNextNode(CheckPackage, Node) ) { for (Node = GetFirstNode(CheckPackage) ; !IsNull (CheckPackage, Node) ; Node = GetNextNode(CheckPackage, Node) ) {
// //
// If the Name matches, return TRUE (and there may be NULL name) // If the Name matches, return TRUE (and there may be NULL name)
// //
@ -1883,7 +1883,7 @@ ShellCommandLineGetValue (
// //
// enumerate through the list of parametrs // enumerate through the list of parametrs
// //
for (Node = GetFirstNode(CheckPackage) ; Node != NULL ; Node = GetNextNode(CheckPackage, Node) ) { for (Node = GetFirstNode(CheckPackage) ; !IsNull (CheckPackage, Node) ; Node = GetNextNode(CheckPackage, Node) ) {
// //
// If the Name matches, return the value (name can be NULL) // If the Name matches, return the value (name can be NULL)
// //
@ -1927,7 +1927,7 @@ ShellCommandLineGetRawValue (
// //
// enumerate through the list of parametrs // enumerate through the list of parametrs
// //
for (Node = GetFirstNode(CheckPackage) ; Node != NULL ; Node = GetNextNode(CheckPackage, Node) ) { for (Node = GetFirstNode(CheckPackage) ; !IsNull (CheckPackage, Node) ; Node = GetNextNode(CheckPackage, Node) ) {
// //
// If the position matches, return the value // If the position matches, return the value
// //