mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-04 10:13:02 +05:00
DDraw: Cast the memcpy() source argument
This works around the MinGW GCC type strictness
This commit is contained in:
parent
fabbe6e9d4
commit
c57b5c543e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue