[ros-diffs] [greatlrd] 15390: Fix unicode / ansi build problem for -D_DEBUG build

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Tue May 17 23:18:07 CEST 2005


Fix unicode / ansi build problem for -D_DEBUG build 
a old bug in cmd. 
Bug report 629 in bugzila 
fix by tinus and his patch at bugzila
Modified: trunk/reactos/subsys/system/cmd/dir.c
  _____  

Modified: trunk/reactos/subsys/system/cmd/dir.c
--- trunk/reactos/subsys/system/cmd/dir.c	2005-05-17 20:51:39 UTC
(rev 15389)
+++ trunk/reactos/subsys/system/cmd/dir.c	2005-05-17 21:18:04 UTC
(rev 15390)
@@ -1668,7 +1668,7 @@

 	if (ptrStartNode == NULL)
 	{
 #ifdef _DEBUG
-		ConErrPrintf("DEBUG: Cannot allocate memory for
ptrStartNode!\n");
+		ConErrPrintf(_T("DEBUG: Cannot allocate memory for
ptrStartNode!\n"));
 #endif
 		return 1;	/* Error cannot allocate memory for 1st
object */
 	}
@@ -1688,7 +1688,7 @@
 				if (ptrNextNode->ptrNext == NULL)
 				{
 #ifdef _DEBUG
-					ConErrPrintf("DEBUG: Cannot
allocate memory for ptrNextNode->ptrNext!\n");
+					ConErrPrintf(_T("DEBUG: Cannot
allocate memory for ptrNextNode->ptrNext!\n"));
 #endif
 					while (ptrStartNode)
 					{
@@ -1748,7 +1748,7 @@
 	if (ptrFileArray == NULL)
 	{
 #ifdef _DEBUG
-		ConErrPrintf("DEBUG: Cannot allocate memory for
ptrFileArray!\n");
+		ConErrPrintf(_T("DEBUG: Cannot allocate memory for
ptrFileArray!\n"));
 #endif
 		while (ptrStartNode)
 		{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050517/9519b3cb/attachment.html


More information about the Ros-diffs mailing list