From 75122e22281d4d455ca4ad2c84e8b8364c4cd304 Mon Sep 17 00:00:00 2001 From: Jeffrey Morlan Date: Tue, 26 Aug 2008 19:07:23 +0000 Subject: [PATCH] cmd_type: Fix misuse of ConOutPrintf which caused problems when the file had any '%' characters in it. svn path=/trunk/; revision=35679 --- reactos/base/shell/cmd/type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/shell/cmd/type.c b/reactos/base/shell/cmd/type.c index d94ca710b97..dd38a044206 100644 --- a/reactos/base/shell/cmd/type.c +++ b/reactos/base/shell/cmd/type.c @@ -106,7 +106,7 @@ INT cmd_type (LPTSTR param) { if(bRet) { - if (ConOutPrintfPaging(bFirstTime, buff) == 1) + if (ConOutPrintfPaging(bFirstTime, _T("%s"), buff) == 1) { bCtrlBreak = FALSE; return 0; @@ -116,7 +116,7 @@ INT cmd_type (LPTSTR param) else { if(bRet) - ConOutPrintf(buff); + ConOutPrintf(_T("%s"), buff); } bFirstTime = FALSE;