diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-08-23 17:38:42 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-08-27 15:21:02 +0800 |
commit | 3da7b0639f618a3809c2e20e072d97b30aeb0d4b (patch) | |
tree | e2e522f9f88982e26054059797531c599cff5d1b /OptionRomPkg | |
parent | 41fd56be34cdec9a6ed729cbadb25a9097c675c1 (diff) | |
download | edk2-3da7b0639f618a3809c2e20e072d97b30aeb0d4b.tar.gz |
EmulatorPkg/EmuFileSystem: Fix a bug that causes Close() assertion
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1117
The root cause is when a file is opened through File.Open(), the
private data for the File is not allocated, so when later
when File.Close() is called, the signature check in CR() causes
the assertion.
The private data for the File is allocated properly when the file
is opened from FS.OpenVolume().
The patch also fixes a minor issue that wrongly assigns
revision number to File.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Cc: Andrew Fish <afish@apple.com>
Diffstat (limited to 'OptionRomPkg')
0 files changed, 0 insertions, 0 deletions