DDraw: Cast the memcpy() source argument

This works around the MinGW GCC type strictness
This commit is contained in:
Echo J 2024-11-04 16:09:14 +02:00
parent ba76a0ed9e
commit cf57f43e19

View file

@ -198,7 +198,7 @@ static bool PatchIAT()
static bool PatchIAT_ByPointers()
{
pOrgSystemParametersInfoA = SystemParametersInfoA;
memcpy( orgCode, pOrgSystemParametersInfoA, sizeof(orgCode) );
memcpy( orgCode, reinterpret_cast<void*>(pOrgSystemParametersInfoA), sizeof(orgCode) );
Memory::VP::InjectHook( pOrgSystemParametersInfoA, SystemParametersInfoA_OverwritingHook, Memory::HookType::Jump );
return true;
}