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-07-05 00:41:39 +0300
committerm417z <mmm.maltsev@gmail.com>2021-07-05 00:41:39 +0300
commit6ffd0190232c670fa08e01dd4f2907ee5785a335 (patch)
treeb6ec95f97e3854c2fad9f08570dbe2a86f64ec41
parent974c5ef837ab428724b4591400bcc7cc89cc56e6 (diff)
Fix compiling as C++ code
-rw-r--r--build/VC16/libMinHook.vcxproj3
-rw-r--r--src/trampoline.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/build/VC16/libMinHook.vcxproj b/build/VC16/libMinHook.vcxproj
index 8ee4414..605871b 100644
--- a/build/VC16/libMinHook.vcxproj
+++ b/build/VC16/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>
@@ -171,4 +170,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
-</Project>
+</Project> \ No newline at end of file
diff --git a/src/trampoline.c b/src/trampoline.c
index a28c5f3..617baf3 100644
--- a/src/trampoline.c
+++ b/src/trampoline.c
@@ -280,7 +280,7 @@ BOOL CreateTrampolineFunction(PTRAMPOLINE ct)
#ifndef _MSC_VER
memcpy((LPBYTE)ct->pTrampoline + newPos, pCopySrc, copySize);
#else
- __movsb((LPBYTE)ct->pTrampoline + newPos, pCopySrc, copySize);
+ __movsb((LPBYTE)ct->pTrampoline + newPos, (LPBYTE)pCopySrc, copySize);
#endif
newPos += copySize;
oldPos += hs.len;