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 47ac4d7f2d
commit 0c377ae10e

View file

@ -197,7 +197,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;
}