[ROSAUTOTEST]
[reactos.git] / rostests / rosautotest / CWineTest.cpp
index 853204a..16aaa1a 100644 (file)
@@ -178,7 +178,7 @@ CWineTest::GetNextTest()
         m_CurrentFile.clear();
 
         /* Also free the memory for the list buffer */
-        delete m_ListBuffer;
+        delete[] m_ListBuffer;
         m_ListBuffer = NULL;
 
         return false;
@@ -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.