]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c
Fix logic error on SectionAlignment calculation.
authorYao, Jiewen <Jiewen.yao@intel.com>
Wed, 10 Jun 2015 00:26:48 +0000 (00:26 +0000)
committerjyao1 <jyao1@Edk2>
Wed, 10 Jun 2015 00:26:48 +0000 (00:26 +0000)
commit81338070fed63c736e86d8e2e0e2a3b52733a794
tree10cb12c2331e9c8b54917bc0f74c00b072b79914
parent4c75d0531bef243adca15e0bf4050376f94c5840
Fix logic error on SectionAlignment calculation.

The correct logic should be:
  - The SectionAlignment is got from Magic number.
  - The Magic number is got from PE header and machine type.
The original code mix them.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: "Yao, Jiewen" <Jiewen.yao@intel.com>
Reviewed-by: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17603 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c