Clarify the MARCO a little.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11051 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey 2010-11-12 19:46:26 +00:00
parent 4ba4961641
commit a301fe0cc8
1 changed files with 3 additions and 2 deletions

View File

@ -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