diff options
author | Zeex <zeex@rocketmail.com> | 2017-10-31 06:03:26 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2017-10-31 06:03:26 +0600 |
commit | d2ac83c4e520e7cc9563656b87fa34c9b849a23d (patch) | |
tree | 3a7a1dd1b5771b41023ce8feb658f17000983508 /subhook.c | |
parent | 062797527ddc6fc60db578cab30ee2daeb199d1b (diff) | |
download | subhook-d2ac83c4e520e7cc9563656b87fa34c9b849a23d.zip subhook-d2ac83c4e520e7cc9563656b87fa34c9b849a23d.tar.gz subhook-d2ac83c4e520e7cc9563656b87fa34c9b849a23d.tar.bz2 |
Replace 0 with NULL
Diffstat (limited to 'subhook.c')
-rw-r--r-- | subhook.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -27,29 +27,29 @@ #include "subhook_private.h" SUBHOOK_EXPORT void *SUBHOOK_API subhook_get_src(subhook_t hook) { - if (!hook) { - return 0; + if (hook == NULL) { + return NULL; } return hook->src; } SUBHOOK_EXPORT void *SUBHOOK_API subhook_get_dst(subhook_t hook) { - if (!hook) { - return 0; + if (hook == NULL) { + return NULL; } return hook->dst; } SUBHOOK_EXPORT void *SUBHOOK_API subhook_get_trampoline(subhook_t hook) { - if (!hook) { - return 0; + if (hook == NULL) { + return NULL; } return hook->trampoline; } SUBHOOK_EXPORT int SUBHOOK_API subhook_is_installed(subhook_t hook) { - if (!hook) { - return 0; + if (hook == NULL) { + return false; } return hook->installed; } |