summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-13 16:08:18 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-10-13 16:08:18 +0000
commit7a95efda40f616117ffd86e338c8bafc287d8221 (patch)
treefb36eafaf0543ebc99128272229e8afc7c936c98
parent349cf2c7cfb765b4e7a4afe38e2feda6b968fd61 (diff)
downloadedk2-platforms-7a95efda40f616117ffd86e338c8bafc287d8221.tar.xz
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
-rw-r--r--ShellPkg/Library/UefiShellLib/UefiShellLib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/ShellPkg/Library/UefiShellLib/UefiShellLib.c
index 42ae6e9bb0..508e9e0ec0 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;
}