Description
I have a JNI dll loaded by a Java process running as a Windows service on Windows 2019 using prunsrv. The JNI library is built with VC14, and makes calls to getenv(), which is imported from ucrtbase.dll.
This call to getenv does not pick up environment variables that are set on the service via //US//Service ++Environment "key=value". Commons Daemon is setting these environment variables using _wputenv(), which is imported from msvcrt.dll.
I started a discussion on the mailing list regarding this. I have patch which dynamically loads ucrtbase.dll and calls its _wputenv method as well, if it is available.
I'm happy to provide changes or further patches, and work on this issue, but feedback would be useful and very much appreciated.
Attachments
Attachments
Issue Links
- links to