Skip to content

Commit

Permalink
Merge pull request #3 from pas-de-2/master
Browse files Browse the repository at this point in the history
Fix MapViewer.ShowScene exception without creating visual artifacts
  • Loading branch information
int19h committed Dec 14, 2022
2 parents 1c71775 + fdd5895 commit 910fdcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.cpp
Expand Up @@ -76,10 +76,10 @@ void DoPatch(void* pvDlg)
0x0F, 0x48, 0x75, 0xF0,
};
static const unsigned char replacement[] = {
0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90,
0x90, 0x90, 0x90, 0x90,
0x66, 0x8B, 0x16, 0x8D,
0x74, 0x16, 0x03, 0x81,
0xE6, 0xFC, 0xFF, 0xFF,
0xFF, 0x48, 0x75, 0xF0,
};
static_assert(sizeof pattern == sizeof replacement, "Pattern and replacement must have the same size");

Expand Down

0 comments on commit 910fdcf

Please sign in to comment.