mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
DDraw: Cast the memcpy() source argument
This works around the MinGW GCC type strictness
This commit is contained in:
parent
940c68983d
commit
acc4af21bd
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ static bool PatchIAT_ByPointers()
|
||||||
using namespace Memory::VP;
|
using namespace Memory::VP;
|
||||||
|
|
||||||
pOrgSystemParametersInfoA = SystemParametersInfoA;
|
pOrgSystemParametersInfoA = SystemParametersInfoA;
|
||||||
memcpy( orgCode, pOrgSystemParametersInfoA, sizeof(orgCode) );
|
memcpy( orgCode, reinterpret_cast<void*>(pOrgSystemParametersInfoA), sizeof(orgCode) );
|
||||||
InjectHook( pOrgSystemParametersInfoA, SystemParametersInfoA_OverwritingHook, HookType::Jump );
|
InjectHook( pOrgSystemParametersInfoA, SystemParametersInfoA_OverwritingHook, HookType::Jump );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue