mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user