diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index 2191045..f68182a 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -198,7 +198,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; }