diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index e77a2d1..dccb841 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -197,7 +197,7 @@ static bool PatchIAT() static bool PatchIAT_ByPointers() { pOrgSystemParametersInfoA = SystemParametersInfoA; - memcpy( orgCode, pOrgSystemParametersInfoA, sizeof(orgCode) ); + memcpy( orgCode, reinterpret_cast(pOrgSystemParametersInfoA), sizeof(orgCode) ); Memory::VP::InjectHook( pOrgSystemParametersInfoA, SystemParametersInfoA_OverwritingHook, Memory::HookType::Jump ); return true; }