https://bugs.winehq.org/show_bug.cgi?id=50405
--- Comment #9 from Samuel Venable samuelvenable@hotmail.com --- So i was correct. It appears it works for them because they used their own method to get the environment size manually, rather than using a real and exist Microsoft API to do it. My code on the other hand uses a real ms api, probably one that wasn't added by you guys, just as I thought. But it will take testing the value of EnvironmentSize to know that for sure.
environmentLength = (ULONG)(mbi.RegionSize - ((ULONG_PTR)environmentRemote - (ULONG_PTR)mbi.BaseAddress));