Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/TsudaKageyu/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm417z <mmm.maltsev@gmail.com>2021-08-13 18:35:30 +0300
committerm417z <mmm.maltsev@gmail.com>2021-08-13 18:35:30 +0300
commit10d3f78e2dde01852b501cf823cab606f6727d02 (patch)
tree326ca038e558333f606a7a3bb5f815f4a0f946a2
parent6ffd0190232c670fa08e01dd4f2907ee5785a335 (diff)
Minor adjustments for consistency
-rw-r--r--build/VC12/libMinHook.vcxproj1
-rw-r--r--build/VC14/libMinHook.vcxproj1
-rw-r--r--build/VC15/libMinHook.vcxproj1
-rw-r--r--src/hook.c4
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 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>None</DebugInformationFormat>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
- <CompileAs>CompileAsC</CompileAs>
<WholeProgramOptimization>true</WholeProgramOptimization>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
</ClCompile>
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 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>None</DebugInformationFormat>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
- <CompileAs>CompileAsC</CompileAs>
<WholeProgramOptimization>true</WholeProgramOptimization>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
</ClCompile>
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 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>None</DebugInformationFormat>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
- <CompileAs>CompileAsC</CompileAs>
<WholeProgramOptimization>true</WholeProgramOptimization>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
</ClCompile>
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.