Skip to content

Instantly share code, notes, and snippets.

@arbruijn
Last active March 14, 2021 11:49
Show Gist options
  • Save arbruijn/acea8253bf454e2e2f1f928ae1b7bc90 to your computer and use it in GitHub Desktop.
Save arbruijn/acea8253bf454e2e2f1f928ae1b7bc90 to your computer and use it in GitHub Desktop.
Patch out watcom 9 gs segment access to make it work in wine
perl -pe 's/\x31\x41\x0f\xb5\x45\x14\x8b\x55\xec\x01/\x31\x41\x90\x8b\x45\x14\x8b\x55\xec\x01/;s/\x1a\x47\x65\x88\x18\x40\x4e\x42\x41\xeb\xe0/\x1a\x47\x90\x88\x18\x40\x4e\x42\x41\xeb\xe0/;s/\x59\xff\xff\xff\x8e\x6d\x18\x03\x7d\x14\x31\xc0\x65\xc6\x07\x00/\x59\xff\xff\xff\x90\x90\x90\x03\x7d\x14\x31\xc0\x90\xc6\x07\x00/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment