]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootImpl.c
NetworkPkg:Fix Http boot download issue.
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootImpl.c
index 3adb08d9f69c5460343b122c7602abe294cb3184..c4a3e707fb07c4950ada3955fac5a9ecb55a1b2d 100644 (file)
@@ -431,7 +431,7 @@ HttpBootDxeLoadFile (
     // 2. The required boot FilePath is different with the one we produced in the device path\r
     // protocol.\r
     //\r
     // 2. The required boot FilePath is different with the one we produced in the device path\r
     // protocol.\r
     //\r
-    if ((UsingIpv6 != Private->UsingIpv6) || !IsDevicePathEnd(FilePath)) {\r
+    if ((UsingIpv6 != Private->UsingIpv6) || ((Private->FilePathUri != NULL) && (AsciiStrCmp (Private->BootFileUri, Private->FilePathUri) != 0))) {\r
       Status = HttpBootStop (Private);\r
       if (!EFI_ERROR (Status)) {\r
         Status = HttpBootStart (Private, UsingIpv6, FilePath);\r
       Status = HttpBootStop (Private);\r
       if (!EFI_ERROR (Status)) {\r
         Status = HttpBootStart (Private, UsingIpv6, FilePath);\r