From 462979afc2086ffa76ae518af5d1c466a4b55b8f Mon Sep 17 00:00:00 2001 From: niruiyu Date: Thu, 25 Nov 2010 07:16:31 +0000 Subject: Fix a bug in GetLangFromSupportedLangCodes() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11092 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/FSVariable/FSVariable.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DuetPkg') 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++); } } } -- cgit v1.2.3