From ae724571beb0cff6edefe42942b7cdc7aa81ee94 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 1 Apr 2011 22:16:01 +0000 Subject: Comment's added and fixed. Pointer's checked for NULL before access and after memory allocations. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11499 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Include/Library/ShellLib.h | 2 +- ShellPkg/Include/ShellBase.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Include') diff --git a/ShellPkg/Include/Library/ShellLib.h b/ShellPkg/Include/Library/ShellLib.h index 6061262221..12cae5afeb 100644 --- a/ShellPkg/Include/Library/ShellLib.h +++ b/ShellPkg/Include/Library/ShellLib.h @@ -1191,7 +1191,7 @@ ShellPromptForResponse ( to prevent invalid answers to question. @param[in] HiiFormatStringId The format string Id for getting from Hii. @param[in] HiiFormatHandle The format string Handle for getting from Hii. - @param[out] Response The pointer to Response, which will be populated upon return. + @param[in,out] Response The pointer to Response, which will be populated upon return. @retval EFI_SUCCESS The operation was sucessful. @return other The operation failed. diff --git a/ShellPkg/Include/ShellBase.h b/ShellPkg/Include/ShellBase.h index bd0462c59c..73ef064207 100644 --- a/ShellPkg/Include/ShellBase.h +++ b/ShellPkg/Include/ShellBase.h @@ -15,7 +15,7 @@ #ifndef __SHELL_BASE__ #define __SHELL_BASE__ -#define ABS(a) (a<0)?(-(a)):(a) +#define ABS(a) ((a<0)?(-(a)):(a)) typedef VOID *SHELL_FILE_HANDLE; -- cgit v1.2.3