Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry hook installation #993

Merged
merged 3 commits into from Jun 15, 2021

Conversation

janisozaur
Copy link
Contributor

Fixes issues seen by MK Inst on his prehistoric wine

This can happen on some versions of wine which would fail on
WriteProcessMemory calls with specific addresses. Skipping to next entry
works just fine.
@janisozaur
Copy link
Contributor Author

Odd thing about this is I tried calling WriteProcessMemory over entire region allocated for _hookTableAddress and it would succeed, but then it would still fail when writing some of the hooks.

@duncanspumpkin
Copy link
Contributor

We know why it failed in the first place?

@AaronVanGeffen AaronVanGeffen added the changelog Should get a changelog entry label Jun 11, 2021
@janisozaur
Copy link
Contributor Author

There are documented instances of such failures with wine. I haven't checked what (if anything) changed there.

@duncanspumpkin duncanspumpkin merged commit 4d58d91 into OpenLoco:master Jun 15, 2021
@AaronVanGeffen AaronVanGeffen added this to the v21.05+ milestone Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Should get a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants