Initialize the parameter mUnicodeCollation before use it to avoid system hang.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12577 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-10-27 01:10:18 +00:00
parent 8d3dd3144c
commit 20258293aa
1 changed files with 5 additions and 0 deletions

View File

@ -2409,6 +2409,11 @@ EvaluateExpression (
break;
case EFI_IFR_MATCH_OP:
Status = InitializeUnicodeCollationProtocol ();
if (EFI_ERROR (Status)) {
goto Done;
}
Status = IfrMatch (FormSet, Value);
break;