mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
Also print messages to output, so the tool is more generally useful
svn path=/trunk/; revision=38316
This commit is contained in:
parent
10ed852076
commit
4349cee957
1 changed files with 5 additions and 2 deletions
|
@ -63,6 +63,7 @@ int _tmain(int argc, TCHAR ** argv)
|
||||||
char *nlptr2 = strchr(psBuffer2, '\n');
|
char *nlptr2 = strchr(psBuffer2, '\n');
|
||||||
if (nlptr2)
|
if (nlptr2)
|
||||||
*nlptr2 = '\0';
|
*nlptr2 = '\0';
|
||||||
|
puts(psBuffer2);
|
||||||
OutputDebugStringA(psBuffer2);
|
OutputDebugStringA(psBuffer2);
|
||||||
}
|
}
|
||||||
_pclose(pPipe2);
|
_pclose(pPipe2);
|
||||||
|
@ -82,6 +83,7 @@ int _tmain(int argc, TCHAR ** argv)
|
||||||
{
|
{
|
||||||
while(fgets(psBuffer, 128, pPipe))
|
while(fgets(psBuffer, 128, pPipe))
|
||||||
{
|
{
|
||||||
|
puts(psBuffer);
|
||||||
OutputDebugStringA(psBuffer);
|
OutputDebugStringA(psBuffer);
|
||||||
}
|
}
|
||||||
_pclose(pPipe);
|
_pclose(pPipe);
|
||||||
|
@ -112,6 +114,7 @@ int _tmain(int argc, TCHAR ** argv)
|
||||||
}
|
}
|
||||||
offset++;
|
offset++;
|
||||||
}
|
}
|
||||||
|
_putts(buf);
|
||||||
OutputDebugString(buf);
|
OutputDebugString(buf);
|
||||||
HeapFree(GetProcessHeap(), 0, buf);
|
HeapFree(GetProcessHeap(), 0, buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue