diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-12 19:46:26 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-12 19:46:26 +0000 |
commit | a301fe0cc8f80b81119126905236bf711e8a955e (patch) | |
tree | 012cd97ed213269ffded996b2de1224240115c14 /ShellPkg | |
parent | 4ba49616416ad8ce57c61d0bb0a80c7b5dbf434b (diff) | |
download | edk2-platforms-a301fe0cc8f80b81119126905236bf711e8a955e.tar.xz |
Clarify the MARCO a little.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11051 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Include/ShellBase.h | 5 |
1 files changed, 3 insertions, 2 deletions
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
|