X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLevel2CommandsLib%2FUefiShellLevel2CommandsLib.c;h=cfad8081935658891308f20e49e4455a057cbb07;hp=36bc3552b57936313c36e1ba85e84f326d4010fc;hb=ba0014b9f8ae1a593f03e744f26008214c2b06a8;hpb=24bfed691d9b581830933623204b56a704d1abd2 diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c index 36bc3552b5..cfad808193 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c @@ -269,7 +269,7 @@ VerifyIntermediateDirectories ( @retval 0 Source and Target are identical strings without regard to case. @retval !=0 Source is not identical to Target. - + **/ INTN StrniCmp( @@ -301,7 +301,7 @@ StrniCmp( FreePool (SourceCopy); return -1; } - + SourceCopy[SourceLength] = L'\0'; TargetCopy[TargetLength] = L'\0'; Result = gUnicodeCollation->StriColl (gUnicodeCollation, SourceCopy, TargetCopy); @@ -315,8 +315,8 @@ StrniCmp( Cleans off all the quotes in the string. @param[in] OriginalString pointer to the string to be cleaned. - @param[out] CleanString The new string with all quotes removed. - Memory allocated in the function and free + @param[out] CleanString The new string with all quotes removed. + Memory allocated in the function and free by caller. @retval EFI_SUCCESS The operation was successful. @@ -328,7 +328,7 @@ ShellLevel2StripQuotes ( ) { CHAR16 *Walker; - + if (OriginalString == NULL || CleanString == NULL) { return EFI_INVALID_PARAMETER; }