[DBGPRINT] --wintest mode: Improve readability of output.
authorMark Jansen <mark.jansen@reactos.org>
Wed, 17 Aug 2016 21:02:49 +0000 (21:02 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 17 Aug 2016 21:02:49 +0000 (21:02 +0000)
svn path=/trunk/; revision=72248

reactos/base/applications/cmdutils/dbgprint/dbgprint.c

index 5bedd65..6fd1731 100644 (file)
@@ -44,7 +44,7 @@ int _tmain(int argc, TCHAR ** argv)
 
         /* get available tests */
         strcpy(cmd, argv[2]);
 
         /* get available tests */
         strcpy(cmd, argv[2]);
-        strcat(cmd, " --list");        
+        strcat(cmd, " --list");
         pPipe = _tpopen(cmd, "r");
         if (pPipe != NULL)
         {
         pPipe = _tpopen(cmd, "r");
         if (pPipe != NULL)
         {
@@ -68,6 +68,8 @@ int _tmain(int argc, TCHAR ** argv)
                             if (nlptr2)
                                 *nlptr2 = '\0';
                             puts(psBuffer2);
                             if (nlptr2)
                                 *nlptr2 = '\0';
                             puts(psBuffer2);
+                            if (nlptr2)
+                                *nlptr2 = '\n';
                             OutputDebugStringA(psBuffer2);
                         }
                         _pclose(pPipe2);
                             OutputDebugStringA(psBuffer2);
                         }
                         _pclose(pPipe2);