audk/EmulatorPkg/EmuSimpleFileSystemDxe
Ruiyu Ni 3da7b0639f 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>
2018-08-27 15:21:02 +08:00
..
ComponentName.c EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
EmuSimpleFileSystem.c EmulatorPkg/EmuFileSystem: Fix a bug that causes Close() assertion 2018-08-27 15:21:02 +08:00
EmuSimpleFileSystem.h EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00
EmuSimpleFileSystemDxe.inf EmulatorPkg: Remove all trailing whitespace 2011-06-28 16:50:26 +00:00