From 9eb53ac3456f79fe107d7daf3e849c008375a28e Mon Sep 17 00:00:00 2001 From: jcarsey Date: Wed, 8 Jul 2009 17:26:58 +0000 Subject: fixing build errors git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8824 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ShellPkg/Library/BaseFileHandleLib') diff --git a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c index 9136b9c200..d04a797bdf 100644 --- a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c +++ b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c @@ -714,7 +714,7 @@ StrnCatGrowLeft ( *Destination = AllocateZeroPool((Count+1)*sizeof(CHAR16)); } - *Destination = CopyMem(*Destination+StrLen(Source), *Destination, StrSize(*Destination)); + *Destination = CopyMem((*Destination)+StrLen(Source), *Destination, StrSize(*Destination)); *Destination = CopyMem(*Destination, Source, StrLen(Source)); return (*Destination); } @@ -798,7 +798,7 @@ FileHandleGetFileName ( } if (EFI_ERROR(Status) && *FullFileName != NULL) { - FreePool(FullFileName); + FreePool(*FullFileName); } return (Status); @@ -808,8 +808,8 @@ FileHandleGetFileName ( Function to read a single line (up to but not including the \n) from a file. @param[in] Handle FileHandle to read from - @param[in,out] Buffer pointer to buffer to read into - @param[in,out] Size pointer to number of bytes in buffer + @param[in,out] Buffer pointer to buffer to read into + @param[in,out] Size pointer to number of bytes in buffer @param[in[ Truncate if TRUE then allows for truncation of the line to fit. if FALSE will reset the position to the begining of the line if the buffer is not large enough. -- cgit v1.2.3