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

Fix flexdll_dlopen when passed NULL file #90

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Sep 21, 2020

On native Windows (i.e. not Cygwin), flexdll_dlopen is a stub function for converting an ANSI filename to Unicode and then calling
flexdll_wdlopen. However, it's permitted to pass NULL in order to get a handle to the running process, but this isn't implemented in the stub, which fails.

As far as I can tell, this means ocamlnat has been broken since OCaml 4.06!

On native Windows (i.e. not Cygwin), flexdll_dlopen is a stub function
for converting an ANSI filename to Unicode and then calling
flexdll_wdlopen. However, it's permitted to pass NULL in order to get a
handle to the running process, but this isn't implemented in the stub,
which fails.
Copy link
Collaborator

@alainfrisch alainfrisch left a comment

Choose a reason for hiding this comment

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

LGTM

@dra27
Copy link
Member Author

dra27 commented Sep 21, 2020

Ta!

@dra27 dra27 merged commit 6ed9805 into ocaml:master Sep 21, 2020
@dra27 dra27 deleted the fix-dlopen branch September 21, 2020 16:17
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