/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
http://opensource.org/licenses/bsd-license.php \r
\r
case EFI_IMAGE_REL_BASED_LOW:\r
F16 = (UINT16 *) Fixup;\r
- *F16 = *F16 + (UINT16) Adjust;\r
+ *F16 = (UINT16) (*F16 + (UINT16) Adjust);\r
if (FixupData != NULL) {\r
*(UINT16 *) FixupData = *F16;\r
FixupData = FixupData + sizeof(UINT16);\r
\r
Status = EFI_UNSUPPORTED;\r
\r
-#if EFI32\r
+#ifdef MDE_CPU_IA32\r
if (MachineType == EFI_IMAGE_MACHINE_IA32) {\r
Status = EFI_SUCCESS;\r
}\r
#endif\r
\r
-#if EFIX64\r
+#ifdef MDE_CPU_X64\r
if (MachineType == EFI_IMAGE_MACHINE_X64) {\r
Status = EFI_SUCCESS;\r
}\r
#endif\r
\r
-#if EFI64\r
- if (MachineType == EFI_IMAGE_MACHINE_IA64) {\r
- Status = EFI_SUCCESS;\r
- }\r
-#endif\r
-\r
return Status;\r
}\r
\r