diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-27 01:10:18 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-10-27 01:10:18 +0000 |
commit | 20258293aa75100109c684e8f2d2dd60a3a804c3 (patch) | |
tree | aa6e835db510deb561193ebe5255d5d202766ec3 /MdeModulePkg | |
parent | 8d3dd3144caa3372ea2f46ff80ec910b78f17210 (diff) | |
download | edk2-platforms-20258293aa75100109c684e8f2d2dd60a3a804c3.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index 60a23f1822..aba565ca64 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -2409,6 +2409,11 @@ EvaluateExpression ( break;
case EFI_IFR_MATCH_OP:
+ Status = InitializeUnicodeCollationProtocol ();
+ if (EFI_ERROR (Status)) {
+ goto Done;
+ }
+
Status = IfrMatch (FormSet, Value);
break;
|