CommandLineToArgvW fix

Alexandre Julliard julliard at
Mon Oct 8 15:50:05 CDT 2001

Francois Gouget <fgouget at> writes:

> On Mon, 8 Oct 2001, Malte Starostik wrote:
> > Don't free cmdline as the return values point into that string. It's the 
> > caller's responsibility to GlobalFree() this according to msdn.
>    Ok, I tested my patch and it works. So I propose it here.

If the caller is supposed to call GlobalFree on the returned value, it
would be much cleaner to allocate it with GlobalAlloc.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list