gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CreateProcessW and NSZoneMalloc (Was Re: Build a project with PC in Wind


From: Germán Arias
Subject: CreateProcessW and NSZoneMalloc (Was Re: Build a project with PC in Windows)
Date: Sat, 08 Mar 2014 19:32:29 -0600
User-agent: GNUMail (Version 1.2.1)

According with this:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx

"lpCommandLine [in, out, optional]

The Unicode version of this function, CreateProcessW, can modify the contents 
of this string. Therefore, this parameter cannot be a pointer to read-only 
memory (such as a const variable or a literal string). If this parameter is a 
constant string, the function may cause an access violation."

In NSTask (line 1113) this parameter is created with NSZoneMalloc(). As far I 
understand the size of this data is fixed. So cannot be changed right? Could be 
this the problem?

Germán.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]