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

Remove repeated call to DllMain #112285

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Conversation

gregg-miskelly
Copy link
Contributor

The PAL's implementation of LoadLibrary has a bug where if the same module is loaded multiple times, each time will call DllMain(..., DLL_PROCESS_ATTACH, ...). This corrects it to behave the same way as Windows were only the initial load will trigger the call to DllMain.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 7, 2025
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@lewing lewing merged commit c0b612c into dotnet:main Feb 7, 2025
94 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-PAL-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants