Author: janderwald
Date: Mon Oct 8 00:05:27 2007
New Revision: 29444
URL:
http://svn.reactos.org/svn/reactos?rev=29444&view=rev
Log:
- improve debugging
Modified:
trunk/reactos/tools/sysreg/namedpipe_reader.cpp
Modified: trunk/reactos/tools/sysreg/namedpipe_reader.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/namedpipe_rea…
==============================================================================
--- trunk/reactos/tools/sysreg/namedpipe_reader.cpp (original)
+++ trunk/reactos/tools/sysreg/namedpipe_reader.cpp Mon Oct 8 00:05:27 2007
@@ -89,7 +89,7 @@
}
else
{
- cout << "NamedPipeReader::openPipe> successfully opened pipe"
<< endl;
+ cout << "NamedPipeReader::openPipe> successfully opened pipe
handle: "<< h_Pipe << endl << "Src: " << PipeCmd
<< endl;
m_BufferLength = 100;
m_Buffer = (char*)malloc(sizeof(char) * m_BufferLength);
return true;
@@ -255,7 +255,7 @@
memset(m_Buffer, 0x0, m_BufferLength * sizeof(char));
long cbRead = 0;
- if (!readPipe(m_Buffer, 100, cbRead))
+ if (!readPipe(m_Buffer, m_BufferLength-1, cbRead))
break;
#ifdef UNICODE
@@ -263,9 +263,9 @@
if (!UnicodeConverter::ansi2Unicode(m_Buffer, m_WBuffer, cbRead))
break;
extractLines(m_WBuffer, vect, append_line, cbRead);
-#endif
+#else
extractLines(m_Buffer, vect, append_line, cbRead);
-
+#endif
}while (append_line);