[ROSAUTOTEST]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 7 Sep 2014 00:34:26 +0000 (00:34 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 7 Sep 2014 00:34:26 +0000 (00:34 +0000)
Initialize hStdInput to the standard input handle, and hStdError to the output pipe, instead of keeping these handles NULL. See the details why this is important in the Jira report ROSTESTS-140.
ROSTESTS-140 #resolve #comment Fixed.

svn path=/trunk/; revision=64055

rostests/rosautotest/CWineTest.cpp

index 119b87d..16aaa1a 100644 (file)
@@ -342,7 +342,9 @@ CWineTest::Run()
 
     m_StartupInfo.cb = sizeof(m_StartupInfo);
     m_StartupInfo.dwFlags = STARTF_USESTDHANDLES;
+    m_StartupInfo.hStdInput  = GetStdHandle(STD_INPUT_HANDLE);
     m_StartupInfo.hStdOutput = m_hWritePipe;
+    m_StartupInfo.hStdError  = m_hWritePipe;
 
     /* The virtual test list is of course faster, so it should be preferred over
        the journaled one.