mirror of https://github.com/acidanthera/audk.git
SShellPkg: updating order of cast and addressing of a pointer (2 identical places).
GCC build didn't like the original version. sighed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12535 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
349cf2c7cf
commit
7a95efda40
|
@ -1365,7 +1365,7 @@ InternalShellConvertFileListType (
|
|||
//
|
||||
NewInfo = AllocateZeroPool(sizeof(EFI_SHELL_FILE_INFO));
|
||||
if (NewInfo == NULL) {
|
||||
ShellCloseFileMetaArg(&(EFI_SHELL_FILE_INFO*)ListHead);
|
||||
ShellCloseFileMetaArg((EFI_SHELL_FILE_INFO**)(&ListHead));
|
||||
ListHead = NULL;
|
||||
break;
|
||||
}
|
||||
|
@ -1390,7 +1390,7 @@ InternalShellConvertFileListType (
|
|||
// make sure all the memory allocations were sucessful
|
||||
//
|
||||
if (NULL == NewInfo->FullName || NewInfo->FileName == NULL || NewInfo->Info == NULL) {
|
||||
ShellCloseFileMetaArg(&(EFI_SHELL_FILE_INFO*)ListHead);
|
||||
ShellCloseFileMetaArg((EFI_SHELL_FILE_INFO**)(&ListHead));
|
||||
ListHead = NULL;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue