mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +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:
parent
6ad2881080
commit
37a3e6af8a
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ Command:
|
||||||
{
|
{
|
||||||
/* Expand the environment size */
|
/* Expand the environment size */
|
||||||
EnvSize = CommandInfo.EnvLen;
|
EnvSize = CommandInfo.EnvLen;
|
||||||
Env = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Env, EnvSize);
|
CommandInfo.Env = Env = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Env, EnvSize);
|
||||||
|
|
||||||
/* Repeat the request */
|
/* Repeat the request */
|
||||||
goto Command;
|
goto Command;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue