Merge pull request #1990 from ergo720/rdtsc_25_to_life

Avoid false rdtsc negative in 25 to life
This commit is contained in:
Luke Usher 2020-10-14 22:33:59 +01:00 committed by GitHub
commit 28d031d9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ void PatchRdtscInstructions()
}
if (next_byte == 0x89)
{
if (*(uint8_t *)(addr - 2) == 0x24 && *(uint8_t *)(addr - 1) == 0x04)
if (*(uint8_t *)(addr + 4) == 0x8B && *(uint8_t *)(addr - 5) == 0x04)
{
EmuLogInit(LOG_LEVEL::INFO, "Skipped false positive: rdtsc pattern 0x%.2X, @ 0x%.8X", next_byte, (DWORD)addr);
continue;