sync alignment issue on IPF.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4987 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-04-03 05:58:21 +00:00
parent aa6c4e3c99
commit 58bba9401d
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}