diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-03 05:58:21 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-03 05:58:21 +0000 |
commit | 58bba9401d8aff5259e643b2ef9629e11f307c94 (patch) | |
tree | 5faa12d2d53a1da0a691b8a0d464c6dc598ab63c /MdeModulePkg | |
parent | aa6c4e3c99a165f6ab5bf27b460c69018c29bb7b (diff) | |
download | edk2-platforms-58bba9401d8aff5259e643b2ef9629e11f307c94.tar.xz |
sync alignment issue on IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4987 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c index 539468015f..c70390ab2e 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c @@ -1669,7 +1669,8 @@ PxeBcSelectBootMenu ( }
if (UseDefaultItem) {
- *Type = NTOHS (MenuArray[0]->Type);
+ CopyMem (Type, &MenuArray[0]->Type, sizeof (UINT16));
+ *Type = NTOHS (*Type);
return EFI_SUCCESS;
}
@@ -1769,7 +1770,8 @@ PxeBcSelectBootMenu ( //
// Swap the byte order
//
- *Type = NTOHS (MenuArray[Select]->Type);
+ CopyMem (Type, &MenuArray[Select]->Type, sizeof (UINT16));
+ *Type = NTOHS (*Type);
return EFI_SUCCESS;
}
|