From d2ac83c4e520e7cc9563656b87fa34c9b849a23d Mon Sep 17 00:00:00 2001 From: Zeex Date: Tue, 31 Oct 2017 06:03:26 +0600 Subject: Replace 0 with NULL --- subhook.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'subhook.c') diff --git a/subhook.c b/subhook.c index 1e3beb0..a0433eb 100644 --- a/subhook.c +++ b/subhook.c @@ -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; } -- cgit v1.1