diff options
author | Zeex <zeex@rocketmail.com> | 2020-11-02 20:14:49 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2020-11-02 20:15:12 +0600 |
commit | 6fae00efdf2ee4760efb206f84e66d8593f58509 (patch) | |
tree | d3b27158938766180f5cc9f477eb566b647b15e5 /subhook_windows.c | |
parent | 1420130730c62485624e958076ccb0f1923e6b89 (diff) | |
download | subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.zip subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.tar.gz subhook-6fae00efdf2ee4760efb206f84e66d8593f58509.tar.bz2 |
Fix segfault in subhook_new()
This fixes #51.
Diffstat (limited to 'subhook_windows.c')
-rw-r--r-- | subhook_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subhook_windows.c b/subhook_windows.c index bf6d2e9..321207e 100644 --- a/subhook_windows.c +++ b/subhook_windows.c @@ -45,7 +45,7 @@ void *subhook_alloc_code(size_t size) { SUBHOOK_CODE_PROTECT_FLAGS); } -int subhok_free_code(void *address, size_t size) { +int subhook_free_code(void *address, size_t size) { (void)size; if (address == NULL) { |