Author: tfaber
Date: Thu Aug 11 08:59:34 2011
New Revision: 53176
URL:
http://svn.reactos.org/svn/reactos?rev=53176&view=rev
Log:
[KMTESTS]
- In fact... don't use WriteConsole at all, as it doesn't allow redirection to a
file.
Modified:
branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c
Modified: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
==============================================================================
--- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c [iso-8859-1] (original)
+++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c [iso-8859-1] Thu Aug 11
08:59:34 2011
@@ -221,7 +221,8 @@
DWORD BytesWritten;
DWORD LogBufferLength;
DWORD Offset = 0;
- /* WriteConsole seems to handle at most ~32kB */
+ /* A console window can't handle a single
+ * huge block of data, so split it up */
const DWORD BlockSize = 8 * 1024;
KmtFinishTest(TestName);
@@ -230,7 +231,7 @@
for (Offset = 0; Offset < LogBufferLength; Offset += BlockSize)
{
DWORD Length = min(LogBufferLength - Offset, BlockSize);
- if (!WriteConsoleA(GetStdHandle(STD_OUTPUT_HANDLE), ResultBuffer->LogBuffer +
Offset, Length, &BytesWritten, NULL))
+ if (!WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), ResultBuffer->LogBuffer +
Offset, Length, &BytesWritten, NULL))
error(Error);
}