diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-14 02:43:38 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-14 02:43:38 +0000 |
commit | 5127b4716b334a68474d227567cc1ce528e1175f (patch) | |
tree | 5a71cf2dca36dd35e0528ec586039ec2988a579a /Nt32Pkg/WinNtBlockIoDxe | |
parent | b9a615fa77c31b7fd6710ca1c5adba27a9638878 (diff) | |
download | edk2-5127b4716b334a68474d227567cc1ce528e1175f.tar.gz edk2-5127b4716b334a68474d227567cc1ce528e1175f.tar.bz2 edk2-5127b4716b334a68474d227567cc1ce528e1175f.zip |
Fix an issue to match invalid Language codes like "enus"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4691 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtBlockIoDxe')
-rw-r--r-- | Nt32Pkg/WinNtBlockIoDxe/DriverDiagnostics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Nt32Pkg/WinNtBlockIoDxe/DriverDiagnostics.c b/Nt32Pkg/WinNtBlockIoDxe/DriverDiagnostics.c index 1bfa3059b5..1060d46001 100644 --- a/Nt32Pkg/WinNtBlockIoDxe/DriverDiagnostics.c +++ b/Nt32Pkg/WinNtBlockIoDxe/DriverDiagnostics.c @@ -159,7 +159,7 @@ WinNtBlockIoDriverDiagnosticsRunDiagnostics ( SupportedLanguages += 3;
} else {
for (Index = 0; SupportedLanguages[Index] != 0 && SupportedLanguages[Index] != ';'; Index++);
- if (AsciiStrnCmp(SupportedLanguages, Language, Index) == 0) {
+ if ((AsciiStrnCmp(SupportedLanguages, Language, Index) == 0) && (Language[Index] == 0)) {
Found = TRUE;
break;
}
|