[PATCH v2] kernel32: Use setprogname(3) to set the program name if available.

Sebastian Lackner sebastian at fds-team.de
Tue Apr 26 15:38:32 CDT 2016

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.


More information about the wine-devel mailing list