// 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