mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +00:00
[CMD] Wait for the spawned application to exit while executing a batch script. Patch by Joachim Henze. CORE-12402
svn path=/trunk/; revision=73246
This commit is contained in:
parent
20421c1d49
commit
9beec30ba3
1 changed files with 2 additions and 1 deletions
|
@ -442,8 +442,9 @@ Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
|
|||
|
||||
if (prci.hProcess != NULL)
|
||||
{
|
||||
if (IsConsoleProcess(prci.hProcess))
|
||||
if (bc != NULL || IsConsoleProcess(prci.hProcess))
|
||||
{
|
||||
/* when processing a batch file or starting console processes: execute synchronously */
|
||||
EnterCriticalSection(&ChildProcessRunningLock);
|
||||
dwChildProcessId = prci.dwProcessId;
|
||||
|
||||
|
|
Loading…
Reference in a new issue