]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootOptionSupport.c
ArmPlatformPkg/Bds: Use HandleProtocol to get SNP instance
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootOptionSupport.c
index f50f13f71dd23f0dc428d9aeed8ec4fdc193c6ec..27faf003c69e3999eb2de814844e8ab41da4321d 100644 (file)
@@ -667,7 +667,7 @@ BdsLoadOptionPxeList (
       // Allocate BDS Supported Device structure\r
       SupportedDevice = (BDS_SUPPORTED_DEVICE*)AllocatePool(sizeof(BDS_SUPPORTED_DEVICE));\r
 \r
-      Status = gBS->LocateProtocol (&gEfiSimpleNetworkProtocolGuid, NULL, (VOID **)&SimpleNet);\r
+      Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiSimpleNetworkProtocolGuid, (VOID **)&SimpleNet);\r
       if (!EFI_ERROR(Status)) {\r
         Mac = &SimpleNet->Mode->CurrentAddress;\r
         UnicodeSPrint (DeviceDescription,BOOT_DEVICE_DESCRIPTION_MAX,L"MAC Address: %02x:%02x:%02x:%02x:%02x:%02x", Mac->Addr[0],  Mac->Addr[1],  Mac->Addr[2],  Mac->Addr[3],  Mac->Addr[4],  Mac->Addr[5]);\r