X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FSmbiosView%2FQueryTable.c;h=b56cd61d07fadea98559d1fad46a337e449d5027;hp=3c561ad8583524fca2d360329200717bf32ff305;hb=ba0014b9f8ae1a593f03e744f26008214c2b06a8;hpb=24bfed691d9b581830933623204b56a704d1abd2 diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c index 3c561ad858..b56cd61d07 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c @@ -2,7 +2,7 @@ Build a table, each item is (Key, Info) pair. And give a interface of query a string out of a table. - Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -3412,7 +3412,7 @@ QueryTable ( // Check if Key is in the range // or if Key == Value in the table // - if ((High > Low && Key >= Low && Key <= High) + if ((High > Low && Key >= Low && Key <= High) || (Table[Index].Key == Key)) { StrnCpyS (Info, InfoLen, Table[Index].Info, InfoLen - 1); StrnCatS (Info, InfoLen, L"\n", InfoLen - 1 - StrLen(Info));