From 10d3f78e2dde01852b501cf823cab606f6727d02 Mon Sep 17 00:00:00 2001 From: m417z Date: Fri, 13 Aug 2021 18:35:30 +0300 Subject: Minor adjustments for consistency --- build/VC12/libMinHook.vcxproj | 1 - build/VC14/libMinHook.vcxproj | 1 - build/VC15/libMinHook.vcxproj | 1 - src/hook.c | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build/VC12/libMinHook.vcxproj b/build/VC12/libMinHook.vcxproj index 6b2a190..7e7fe8e 100644 --- a/build/VC12/libMinHook.vcxproj +++ b/build/VC12/libMinHook.vcxproj @@ -120,7 +120,6 @@ Level3 None AnySuitable - CompileAsC true NoExtensions diff --git a/build/VC14/libMinHook.vcxproj b/build/VC14/libMinHook.vcxproj index 263b811..a429e69 100644 --- a/build/VC14/libMinHook.vcxproj +++ b/build/VC14/libMinHook.vcxproj @@ -120,7 +120,6 @@ Level3 None AnySuitable - CompileAsC true NoExtensions diff --git a/build/VC15/libMinHook.vcxproj b/build/VC15/libMinHook.vcxproj index 0d4352e..829ac34 100644 --- a/build/VC15/libMinHook.vcxproj +++ b/build/VC15/libMinHook.vcxproj @@ -120,7 +120,6 @@ Level3 None AnySuitable - CompileAsC true NoExtensions diff --git a/src/hook.c b/src/hook.c index a197589..aba9e35 100644 --- a/src/hook.c +++ b/src/hook.c @@ -140,7 +140,7 @@ static PHOOK_ENTRY AddHookEntry() } //------------------------------------------------------------------------- -static void DeleteHookEntry(UINT pos) +static VOID DeleteHookEntry(UINT pos) { if (pos < g_hooks.size - 1) g_hooks.pItems[pos] = g_hooks.pItems[g_hooks.size - 1]; @@ -196,7 +196,7 @@ static DWORD_PTR FindNewIP(PHOOK_ENTRY pHook, DWORD_PTR ip) } //------------------------------------------------------------------------- -static void ProcessThreadIPs(HANDLE hThread, UINT pos, UINT action) +static VOID ProcessThreadIPs(HANDLE hThread, UINT pos, UINT action) { // If the thread suspended in the overwritten area, // move IP to the proper address. -- cgit v1.2.3