diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index 99c9507..be37007 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -200,7 +200,7 @@ static bool PatchIAT_ByPointers() using namespace Memory::VP; pOrgSystemParametersInfoA = SystemParametersInfoA; - memcpy( orgCode, pOrgSystemParametersInfoA, sizeof(orgCode) ); + memcpy( orgCode, reinterpret_cast(pOrgSystemParametersInfoA), sizeof(orgCode) ); InjectHook( pOrgSystemParametersInfoA, SystemParametersInfoA_OverwritingHook, HookType::Jump ); return true; }