Skip to content

Patch wine to fix addDllDirectory #1970

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

Closed
wants to merge 5 commits into from
Closed

Patch wine to fix addDllDirectory #1970

wants to merge 5 commits into from

Conversation

hamishmack
Copy link
Collaborator

@hamishmack hamishmack commented May 29, 2023

Fixes errors like this when trying to load DLLs into template haskell code with GHC 9.4 and above:

iserv-proxy-interpreter.exe: addLibrarySearchPath: \\?\Z:\nix\store\gjsf5jazfbfv21hvvgf1amd5rdx3ycf3-x86_64-w64-mingw32-ghc-9.4.3\lib\x86_64-windows-ghc-9.4.3\ghc-bignum-1.3 (Win32 error 87): Invalid parameter.

These errors arise with GHC 9.4 and above because it uses UNC paths to avoid limits on path length. The RtlDetermineDosPathNameType_U function classifies these as a DEVICE_PATH and LdrAddDllDirectory gives up at that point.

@hamishmack hamishmack self-assigned this May 29, 2023
@stale
Copy link

stale bot commented Oct 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@hamishmack
Copy link
Collaborator Author

merged as part of #2034

@hamishmack hamishmack closed this Oct 14, 2023
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.

2 participants