diff options
-rw-r--r-- | build/VC16/libMinHook.vcxproj | 3 | ||||
-rw-r--r-- | src/trampoline.c | 2 |
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; |