]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/SecMain.c
update
[mirror_edk2.git] / UnixPkg / Sec / SecMain.c
index b5f6092519d0eaa93e4a716f63d3cf014fc88605..ffeed21e7525366e62b28bfd77bc8393173b265e 100644 (file)
@@ -751,7 +751,7 @@ Returns:
   //
   // Align buffer on section boundry
   //
-  ImageContext.ImageAddress += ImageContext.SectionAlignment;
+  ImageContext.ImageAddress += ImageContext.SectionAlignment - 1;
   ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1);