Author: hyperion Date: Tue Dec 23 14:37:53 2008 New Revision: 38316
URL: http://svn.reactos.org/svn/reactos?rev=38316&view=rev Log: Also print messages to output, so the tool is more generally useful
Modified: trunk/reactos/base/applications/cmdutils/dbgprint/dbgprint.c
Modified: trunk/reactos/base/applications/cmdutils/dbgprint/dbgprint.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils/... ============================================================================== --- trunk/reactos/base/applications/cmdutils/dbgprint/dbgprint.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/cmdutils/dbgprint/dbgprint.c [iso-8859-1] Tue Dec 23 14:37:53 2008 @@ -31,7 +31,7 @@ return -1; }
- if (_tcsstr(argv[1], "--winetest") && (argc == 3)) + if (_tcsstr(argv[1], "--winetest") && (argc == 3)) { char psBuffer[128]; char psBuffer2[128]; @@ -63,6 +63,7 @@ char *nlptr2 = strchr(psBuffer2, '\n'); if (nlptr2) *nlptr2 = '\0'; + puts(psBuffer2); OutputDebugStringA(psBuffer2); } _pclose(pPipe2); @@ -72,7 +73,7 @@ _pclose(pPipe); } } - else if (_tcsstr(argv[1], "--process") && (argc == 3)) + else if (_tcsstr(argv[1], "--process") && (argc == 3)) { char psBuffer[128]; FILE *pPipe; @@ -82,6 +83,7 @@ { while(fgets(psBuffer, 128, pPipe)) { + puts(psBuffer); OutputDebugStringA(psBuffer); } _pclose(pPipe); @@ -112,6 +114,7 @@ } offset++; } + _putts(buf); OutputDebugString(buf); HeapFree(GetProcessHeap(), 0, buf); }