From 7a95efda40f616117ffd86e338c8bafc287d8221 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Thu, 13 Oct 2011 16:08:18 +0000 Subject: 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 --- ShellPkg/Library/UefiShellLib/UefiShellLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShellPkg') diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c index 42ae6e9bb..508e9e0ec 100644 --- a/ShellPkg/Library/UefiShellLib/UefiShellLib.c +++ b/ShellPkg/Library/UefiShellLib/UefiShellLib.c @@ -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; } -- cgit v1.2.3