X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Nt32Pkg%2FSec%2FSecMain.c;fp=Nt32Pkg%2FSec%2FSecMain.c;h=e9f72dfba10e39460e5f0b5115ad10d0705dfd3b;hp=e6eb3cf45e05575f17adf15104a49dd0acb2e0b6;hb=4e50241273b7e01cf2d7eb22ebf9f6a9d045b00b;hpb=2a244a5d9f1b16517caf92114ec3e09bdb9c37a5 diff --git a/Nt32Pkg/Sec/SecMain.c b/Nt32Pkg/Sec/SecMain.c index e6eb3cf45e..e9f72dfba1 100644 --- a/Nt32Pkg/Sec/SecMain.c +++ b/Nt32Pkg/Sec/SecMain.c @@ -1,6 +1,7 @@ /**@file Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -809,7 +810,7 @@ Returns: // Align buffer on section boundry // ImageContext.ImageAddress += ImageContext.SectionAlignment - 1; - ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1); + ImageContext.ImageAddress &= ~((EFI_PHYSICAL_ADDRESS)ImageContext.SectionAlignment - 1); Status = PeCoffLoaderLoadImage (&ImageContext); if (EFI_ERROR (Status)) {