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:
jcarsey 2011-10-13 16:08:18 +00:00
parent 349cf2c7cf
commit 7a95efda40
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}