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:
@ -20,8 +20,9 @@ typedef VOID *SHELL_FILE_HANDLE;
|
|||||||
#ifndef SHELL_FREE_NON_NULL
|
#ifndef SHELL_FREE_NON_NULL
|
||||||
#define SHELL_FREE_NON_NULL(Pointer) \
|
#define SHELL_FREE_NON_NULL(Pointer) \
|
||||||
do { \
|
do { \
|
||||||
if (Pointer != NULL) { \
|
if ((Pointer) != NULL) { \
|
||||||
FreePool(Pointer); \
|
FreePool((Pointer)); \
|
||||||
|
(Pointer) = NULL; \
|
||||||
} \
|
} \
|
||||||
} while(FALSE)
|
} while(FALSE)
|
||||||
#endif //SHELL_FREE_NON_NULL
|
#endif //SHELL_FREE_NON_NULL
|
||||||
|
Reference in New Issue
Block a user