Make cmdline writable (cmdline4)

Alexandre Julliard julliard at
Fri Sep 7 12:28:24 CDT 2001

Francois Gouget <fgouget at> writes:

>    CreateProcess may modify the command line that was passed as a
> parameter. It does this not in the current process but in the child
> process so that the caller may not realize it, but it may hit a snag if
> the command line is not writable in the first place.

But the command line parameter is a LPSTR, so CreateProcess is allowed
to modify it and the caller is not supposed to pass a const string. In
what case does this cause a problem?

Alexandre Julliard
julliard at

More information about the wine-devel mailing list