https://bugs.winehq.org/show_bug.cgi?id=50405
--- Comment #11 from Samuel Venable samuelvenable@hotmail.com --- (In reply to Zebediah Figura from comment #5)
This bug actually does seem to be valid. According to [1], we're missing the following fields of RTL_USER_PROCESS_PARAMETERS:
ULONG EnvironmentSize; ULONG EnvironmentVersion; PVOID PackageDependencyData; ULONG ProcessGroupId; ULONG LoaderThreads;
[1] https://processhacker.sourceforge.io/doc/ntrtl_8h_source.html
I'm not sure what the point of EnvironmentSize is, since the environment is doubly null-terminated, but there you go...
Ah, so mystery solved?