[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute and the dreaded Windows console
- From: Chris <coderight@...>
- Date: Tue, 9 Sep 2008 08:07:47 -0400
On Tue, Sep 9, 2008 at 4:33 AM, Robert Raschke <rtrlists@googlemail.com> wrote:
> LPTSTR szCmdline = lua_tostring(L, 1);
>
> <...snip...>
>
> if (! CreateProcess(NULL, szCmdline, NULL, NULL, FALSE, DETACHED_PROCESS,
I'm surprised that using szCmdLine like that works. The second
parameter to CreateProcess is not const (it's an in/out parameter) and
on my system CreateProcess modifies it which sometimes causes a crash.
CR