Re: [AD] 3.9.34 release date?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Ben Davis <ben@xxxxxxxxxx> wrote:
> 
> Here's a patch for wsystem.c that allocates the memory dynamically. The
> command line's length is tested properly, and the array of argv pointers is
> realloced whenever necessary (64 at a time).

Applied.

> If any of the mallocs fails,
> WinMain returns -1. I don't know whether this is the right thing to do; feel
> free to change it if necessary.

I changed it to 1, as I wasn't sure if -1 was a valid return code.
Anyway, it's only academic.  If you don't have 64 bytes left in your
system, you're screwed regardless. :-)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/