aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--efi/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/main.c b/efi/main.c
index 8e08d4f9..7d9d5151 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -63,7 +63,7 @@ bool efi_get_MAC( EFI_DEVICE_PATH * pDevPath, uint8_t * mac, uint16_t mac_size)
/* Find the handler to dump this device path node */
if (DevicePathType(DevPathNode) == MESSAGING_DEVICE_PATH &&
DevicePathSubType(DevPathNode) == MSG_MAC_ADDR_DP) {
- MAC = DevPathNode;
+ MAC = (MAC_ADDR_DEVICE_PATH *)DevPathNode;
CopyMem(mac, MAC->MacAddress.Addr, PXE_MAC_LENGTH);
FreePool(pDevPath);
return TRUE;