diff --git a/NetworkPkg/HttpBootDxe/HttpBootSupport.c b/NetworkPkg/HttpBootDxe/HttpBootSupport.c index 37a95e031e..a91411db7d 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootSupport.c +++ b/NetworkPkg/HttpBootDxe/HttpBootSupport.c @@ -681,11 +681,11 @@ HttpBootCheckImageType ( } FilePost = FilePath + AsciiStrLen (FilePath) - 4; - if (AsciiStrCmp (FilePost, ".efi") == 0) { + if (AsciiStriCmp (FilePost, ".efi") == 0) { *ImageType = ImageTypeEfi; - } else if (AsciiStrCmp (FilePost, ".iso") == 0) { + } else if (AsciiStriCmp (FilePost, ".iso") == 0) { *ImageType = ImageTypeVirtualCd; - } else if (AsciiStrCmp (FilePost, ".img") == 0) { + } else if (AsciiStriCmp (FilePost, ".img") == 0) { *ImageType = ImageTypeVirtualDisk; } else { *ImageType = ImageTypeMax;