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

Fixed an issue where we'd randomly fail to load the original DLL. #645

Closed
wants to merge 1 commit into from

Conversation

WarrenHood
Copy link

@WarrenHood WarrenHood commented May 8, 2024

Hi!

LoadLibraryA expects a null-terminated string. I noticed this issue with proxygen and realised it might also be a problem here.
This PR simply pushes a null byte to the end of the path passed to LoadLibraryA.
Additionally, I thought it'd be a good idea to also use INFO_BUFFER_SIZE (32767) as the buffer size when getting the current DLL path.

Testing
I was able to reproduce it happening once in quite a few launches, and afterwards I was able to launch a few times without it happening. Should be fine.

Fixes #632

LoadLibraryA expects a null-terminated string
@RinLovesYou
Copy link
Member

RinLovesYou commented May 8, 2024

Two things, Pull requests need to be based on, and sent to the alpha-development branch.
Secondly, this issue is already fixed on there.

Regardless, thank you for taking the time to do this!

@RinLovesYou RinLovesYou closed this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Random chance of the game failing to launch
2 participants