Fix the issue of the changes of the environment values not being set sometimes through fancy dialog box: Make sure the environment value buffer is always reallocated before taking the values.
34593d93