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 940c68983d
commit acc4af21bd

View file

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