Don’t know why I didn’t think of that. I’m going to give it a try and see if there’s any reason I can’t get it to work.
~Theodore
On Apr 26, 2016, at 1:38 PM, Sebastian Lackner sebastian@fds-team.de wrote:
On 26.04.2016 22:35, Theodore Dubois wrote:
I have both a custom wine loader and a hacked version of Wine, so I just reverted the patch.
It would be really nice to have this work for when I’m not using a custom loader. Maybe you could check if argv is in the malloc heap? Or maybe I could somehow indicate when calling wine_init that the argv is malloced?
~Theodore
May I ask why you are not just allocating the argv array in a way compatible to the OS? When you have full control in your custom loader, this should be trivial and the easiest way to fix it.
Regards, Sebastian