]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Fix wrong variable header size
authorChen, Lin Z <lin.z.chen@intel.com>
Tue, 11 Jan 2022 13:01:12 +0000 (21:01 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Jan 2022 09:35:35 +0000 (09:35 +0000)
commit7438a85bf1388add286a89707079d9afca735814
tree0c1aa9ed04e0cb4ba0a0e3e2c4f7c6564c588f16
parent6062002bd5a394fef46243dd866860c3480d918e
BaseTools: Fix wrong variable header size

There are two type variable header and their size are different,
need to use matched size when calculating offset info, otherwise
it'll destroy other variables content when patching.

Signed-off-by: Chen, Lin Z <lin.z.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/GenVar.py