diff options
-rw-r--r-- | Nt32Pkg/Sec/SecMain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Nt32Pkg/Sec/SecMain.c b/Nt32Pkg/Sec/SecMain.c index 7eac24a..120a7f8 100644 --- a/Nt32Pkg/Sec/SecMain.c +++ b/Nt32Pkg/Sec/SecMain.c @@ -737,7 +737,7 @@ Returns: //
// Align buffer on section boundry
//
- ImageContext.ImageAddress += ImageContext.SectionAlignment;
+ ImageContext.ImageAddress += ImageContext.SectionAlignment - 1;
ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1);
Status = PeCoffLoaderLoadImage (&ImageContext);
|