ocaml / flexdll

a dlopen-like API for Windows
Other
97 stars 30 forks source link

Fix flexdll_dlopen when passed NULL file #90

Closed dra27 closed 3 years ago

dra27 commented 3 years ago

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!

dra27 commented 3 years ago

Ta!