Author: aandrejevic
Date: Mon May 19 22:40:36 2014
New Revision: 63379
URL:
http://svn.reactos.org/svn/reactos?rev=63379&view=rev
Log:
[NTVDM]
Properly repeat the GetNextVDMCommand request. Using "continue" there will not
work
if the application has been started by a double click, since in that case AcceptCommands
is FALSE.
Modified:
trunk/reactos/subsystems/ntvdm/ntvdm.c
Modified: trunk/reactos/subsystems/ntvdm/ntvdm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/ntvdm.c?r…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/ntvdm.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/ntvdm.c [iso-8859-1] Mon May 19 22:40:36 2014
@@ -435,6 +435,7 @@
if (First) CommandInfo.VDMState |= VDM_FLAG_FIRST_TASK;
+Command:
if (!GetNextVDMCommand(&CommandInfo))
{
if (CommandInfo.EnvLen > EnvSize)
@@ -443,7 +444,8 @@
EnvSize = CommandInfo.EnvLen;
Env = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Env, EnvSize);
- continue;
+ /* Repeat the request */
+ goto Command;
}
break;