diff options
Diffstat (limited to 'Nt32Pkg/Sec')
-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 7eac24ad91..120a7f85c7 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);
|