[NTVDM:DOS]: Don't forget to update CommandInfo.Env otherwise we would use the old environment buffer that is now invalid, hence corrupting the heap and doing other nasty things :P Debugged by V.

svn path=/trunk/; revision=65442
This commit is contained in:
Hermès Bélusca-Maïto 2014-11-21 15:55:39 +00:00
parent 6ad2881080
commit 37a3e6af8a

View file

@ -236,7 +236,7 @@ Command:
{
/* Expand the environment size */
EnvSize = CommandInfo.EnvLen;
Env = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Env, EnvSize);
CommandInfo.Env = Env = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Env, EnvSize);
/* Repeat the request */
goto Command;