Convert Windows stubs to Unicode (#58)
* Convert Windows stubs to Unicode
* Apply preprocessor flags on Windows only
* Fix stray module
* Alternate without calling OCaml
* Save the memory, 1 wide character at a time
* Windows environments also can't contain nulls
* Shuffle the initialisation to remove memory leak
If the duplication of the handles failed, then the memory allocated for
the strings wasn't freed. Duplicate the handles first - the only failure
for the strings is OOM, and all bets are then off.
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
fa620a
-
Mar 11 22:53 +00:00