summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/UefiPxeBcDxe
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 07:01:14 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 07:01:14 +0000
commit555e76f83f0ccf60434d3c72720f0a79f5ff4639 (patch)
tree5c3dc4c8e986579c1ecc39f442dbc7353fba831d /MdeModulePkg/Universal/Network/UefiPxeBcDxe
parent940a892b9a89e34b594219526ce878e62fce5057 (diff)
downloadedk2-platforms-555e76f83f0ccf60434d3c72720f0a79f5ff4639.tar.xz
Refine MdeModulePkg to pass GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6575 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/UefiPxeBcDxe')
-rw-r--r--MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
index 841ea09a01..40f7277a67 100644
--- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
+++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
@@ -1909,13 +1909,13 @@ EfiPxeBcSetStationIP (
}
if (NewStationIp != NULL) {
- Mode->StationIp = *NewStationIp;
- Private->StationIp = *NewStationIp;
+ CopyMem (&Mode->StationIp, NewStationIp, sizeof (EFI_IP_ADDRESS));
+ CopyMem (&Private->StationIp, NewStationIp, sizeof (EFI_IP_ADDRESS));
}
if (NewSubnetMask != NULL) {
- Mode->SubnetMask = *NewSubnetMask;
- Private->SubnetMask = *NewSubnetMask;
+ CopyMem (&Mode->SubnetMask, NewSubnetMask, sizeof (EFI_IP_ADDRESS));
+ CopyMem (&Private->SubnetMask ,NewSubnetMask, sizeof (EFI_IP_ADDRESS));
}
Private->AddressIsOk = TRUE;