Fix an off-by-one patch error

This commit is contained in:
Luke Usher 2018-04-14 17:34:23 +01:00
parent fe8b2764f3
commit 31c328ab3e
1 changed files with 1 additions and 1 deletions

View File

@ -669,7 +669,7 @@ void PatchPerformanceFrequency()
{ {
if (memcmp((void*)addr, &xboxFrequency, sizeof(DWORD)) == 0) { if (memcmp((void*)addr, &xboxFrequency, sizeof(DWORD)) == 0) {
printf("INIT: Patching Frequency at 0x%.8X\n", addr); printf("INIT: Patching Frequency at 0x%.8X\n", addr);
*(uint32*)(addr + 1) = (uint32)hostFrequency.QuadPart; *(uint32*)(addr) = (uint32)hostFrequency.QuadPart;
addr += sizeof(DWORD); addr += sizeof(DWORD);
break; break;
} }