dlls/kernel/process.c breakage due to environ

Gerald Pfeifer gerald at pfeifer.com
Fri Oct 10 16:42:19 CDT 2003


On Fri, 10 Oct 2003, Alexandre Julliard wrote:
>> Depending on how you plan to fix the compilation failure, it might make
>> sense to have just one declaration at the top instead of several (and
>> thus several #ifdef's, in case they are needed for the fix) in functions?
> Well, maybe, but we can only tell once we know what is required to fix
> the problem. My question was whether simply moving the declaration
> fixed it for you, but I'd be very surprised if it did.

You are right, this did not really fix the problem.

A real fix might require adding a global variable and initializing that
from the third parameter of main, i.e., changing main to

  int main( int argc, char *argv[], char **environ )

Gerald
-- 
Gerald Pfeifer (Jerry)   gerald at pfeifer.com   http://www.pfeifer.com/gerald/



More information about the wine-devel mailing list