mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg/UdfDxe: Use compare operator for non-boolean comparisons
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>
This commit is contained in:
parent
fedec0a38e
commit
12b83f5664
@ -1255,7 +1255,7 @@ InternalFindFile (
|
||||
BlockIo,
|
||||
DiskIo,
|
||||
Volume,
|
||||
Parent->FileIdentifierDesc ?
|
||||
(Parent->FileIdentifierDesc != NULL) ?
|
||||
&Parent->FileIdentifierDesc->Icb :
|
||||
Icb,
|
||||
Parent->FileEntry,
|
||||
@ -2117,7 +2117,7 @@ SetFileInfo (
|
||||
//
|
||||
// Calculate the needed size for the EFI_FILE_INFO structure.
|
||||
//
|
||||
FileInfoLength = sizeof (EFI_FILE_INFO) + (FileName ?
|
||||
FileInfoLength = sizeof (EFI_FILE_INFO) + ((FileName != NULL) ?
|
||||
StrSize (FileName) :
|
||||
sizeof (CHAR16));
|
||||
if (*BufferSize < FileInfoLength) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user