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 23af8cd7ca
commit 9dbda6951b

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;
}