From 077c7aeec07361fc36f8090be46959adb7d38873 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Tue, 17 Dec 2013 08:33:06 +0000 Subject: Update code to support guid op nest in the statement. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14995 6f19259b-4bc3-4df7-8a09-765794883524 --- .../CustomizedDisplayLib/CustomizedDisplayLibInternal.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MdeModulePkg/Library/CustomizedDisplayLib') diff --git a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c index 82ab82b..ad4bc9a 100644 --- a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c +++ b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c @@ -322,7 +322,9 @@ ProcessExternedOpcode ( ) { LIST_ENTRY *Link; + LIST_ENTRY *NestLink; FORM_DISPLAY_ENGINE_STATEMENT *Statement; + FORM_DISPLAY_ENGINE_STATEMENT *NestStatement; Link = GetFirstNode (&FormData->StatementListOSF); while (!IsNull (&FormData->StatementListOSF, Link)) { @@ -338,6 +340,15 @@ ProcessExternedOpcode ( Link = GetNextNode (&FormData->StatementListHead, Link); ProcessUserOpcode(Statement->OpCode); + + NestLink = GetFirstNode (&Statement->NestStatementList); + while (!IsNull (&Statement->NestStatementList, NestLink)) { + NestStatement = FORM_DISPLAY_ENGINE_STATEMENT_FROM_LINK (NestLink); + NestLink = GetNextNode (&Statement->NestStatementList, NestLink); + + ProcessUserOpcode(NestStatement->OpCode); + } + } } -- cgit v1.1