]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenFv: Add check to ensure the file handle status is correct
authorHao Wu <hao.a.wu@intel.com>
Thu, 30 Nov 2017 08:44:14 +0000 (16:44 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:04 +0000 (09:54 +0800)
commitf6401aedca2d576f4229c54c1356fea23387981f
tree71dd32a1f86690e746bd653b38f40e1da4f48ded
parent9edcd2788d7baa767b0761f0917c014612b6d72a
BaseTools/GenFv: Add check to ensure the file handle status is correct

Add an extra NULL check for the file handle to ensure that its status is
correct.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/GenFv/GenFv.c