Skip to content

Fix flexdll_dlopen when passed NULL file - #90

Merged
dra27 merged 1 commit into
ocaml:masterfrom
dra27:fix-dlopen
Sep 21, 2020
Merged

dra27 merged 1 commit into
ocaml:masterfrom
dra27:fix-dlopen

Conversation

@dra27

@dra27 dra27 commented Sep 21, 2020

Copy link
Copy Markdown
Member

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.

@alainfrisch alainfrisch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@dra27

dra27 commented Sep 21, 2020

Copy link
Copy Markdown
Member Author

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