From a301fe0cc8f80b81119126905236bf711e8a955e Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 12 Nov 2010 19:46:26 +0000 Subject: Clarify the MARCO a little. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11051 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Include/ShellBase.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ShellPkg') diff --git a/ShellPkg/Include/ShellBase.h b/ShellPkg/Include/ShellBase.h index b764381522..d005544bcd 100644 --- a/ShellPkg/Include/ShellBase.h +++ b/ShellPkg/Include/ShellBase.h @@ -20,8 +20,9 @@ typedef VOID *SHELL_FILE_HANDLE; #ifndef SHELL_FREE_NON_NULL #define SHELL_FREE_NON_NULL(Pointer) \ do { \ - if (Pointer != NULL) { \ - FreePool(Pointer); \ + if ((Pointer) != NULL) { \ + FreePool((Pointer)); \ + (Pointer) = NULL; \ } \ } while(FALSE) #endif //SHELL_FREE_NON_NULL -- cgit v1.2.3