[Wine] Re: Hos to set stack size

jorl17 wineforum-user at winehq.org
Tue Jan 19 06:01:14 CST 2010


jeffz wrote:
> 
> The.coder wrote:
> > Well i'm playing warcfraft3 online and some hackers use stack_overflow to disconnect other players.Since i dont have the source code of warcraft III, my only way is to increase the stack size allowed by wine.
> > Basically wine/warcraft3 crash with a stack_overflow exception.
> 
> 
> that's a little alarming, but if you really want what you ask for:
> 
> This program should set the stack size:
> 
> http://jeffz.name/code/pe2.exe
> http://jeffz.name/code/pe2.c
> 
> usage: pe2 filename SizeOfStackReserve
> 
> so, to set wc3.exe to 8MB reserve stacksize, use 8290304
> 
> If you mean the commit size rather than reserve, then change 'Reserve' to 'Commit' and recompile and re-apply.
> 
> be sure to backup your wc3.exe before running this.


If the game uses any type of checksum on the executable file (as many games do), then this won't work for you -- it'll probably tell you to update your version due to a CRC mismatch or something similar enough.







More information about the wine-users mailing list