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 b80ee9d8ca
commit 8093c055e6

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