summaryrefslogtreecommitdiff
path: root/DuetPkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-25 07:16:31 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2010-11-25 07:16:31 +0000
commit462979afc2086ffa76ae518af5d1c466a4b55b8f (patch)
tree0a31ede1d3df6c35dcecc69525327c9917040d28 /DuetPkg
parent5c0337668f8bc7a2ea202d4a2bb9457d9a67160a (diff)
downloadedk2-platforms-462979afc2086ffa76ae518af5d1c466a4b55b8f.tar.xz
Fix a bug in GetLangFromSupportedLangCodes()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11092 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg')
-rw-r--r--DuetPkg/FSVariable/FSVariable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c
index a8286ad9b9..70da3907b8 100644
--- a/DuetPkg/FSVariable/FSVariable.c
+++ b/DuetPkg/FSVariable/FSVariable.c
@@ -704,6 +704,11 @@ GetLangFromSupportedLangCodes (
return CopyMem (mGlobal->PlatformLang, Supported - CompareLength, CompareLength);
}
SubIndex++;
+
+ //
+ // Skip ';' characters in Supported
+ //
+ for (; *Supported != '\0' && *Supported == ';'; Supported++);
}
}
}