Cc: Paulo Alcantara <pcacjr@zytor.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
BlockIo,\r
DiskIo,\r
Volume,\r
- Parent->FileIdentifierDesc ?\r
+ (Parent->FileIdentifierDesc != NULL) ?\r
&Parent->FileIdentifierDesc->Icb :\r
Icb,\r
Parent->FileEntry,\r
//\r
// Calculate the needed size for the EFI_FILE_INFO structure.\r
//\r
- FileInfoLength = sizeof (EFI_FILE_INFO) + (FileName ?\r
+ FileInfoLength = sizeof (EFI_FILE_INFO) + ((FileName != NULL) ?\r
StrSize (FileName) :\r
sizeof (CHAR16));\r
if (*BufferSize < FileInfoLength) {\r