Skip to content

Commit

Permalink
Fix compiling as C++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Jul 4, 2021
1 parent 974c5ef commit 6ffd019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build/VC16/libMinHook.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>None</DebugInformationFormat>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<CompileAs>CompileAsC</CompileAs>
<WholeProgramOptimization>true</WholeProgramOptimization>
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
</ClCompile>
Expand Down Expand Up @@ -171,4 +170,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion src/trampoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ffd019

Please sign in to comment.