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


 

svn path=/trunk/; revision=15390
This commit is contained in:
Magnus Olsen 2005-05-17 21:18:04 +00:00
parent a04f8e62fe
commit baed69574e

View file

@ -1668,7 +1668,7 @@ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (ptrStartNode == NULL) if (ptrStartNode == NULL)
{ {
#ifdef _DEBUG #ifdef _DEBUG
ConErrPrintf("DEBUG: Cannot allocate memory for ptrStartNode!\n"); ConErrPrintf(_T("DEBUG: Cannot allocate memory for ptrStartNode!\n"));
#endif #endif
return 1; /* Error cannot allocate memory for 1st object */ return 1; /* Error cannot allocate memory for 1st object */
} }
@ -1688,7 +1688,7 @@ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (ptrNextNode->ptrNext == NULL) if (ptrNextNode->ptrNext == NULL)
{ {
#ifdef _DEBUG #ifdef _DEBUG
ConErrPrintf("DEBUG: Cannot allocate memory for ptrNextNode->ptrNext!\n"); ConErrPrintf(_T("DEBUG: Cannot allocate memory for ptrNextNode->ptrNext!\n"));
#endif #endif
while (ptrStartNode) while (ptrStartNode)
{ {
@ -1748,7 +1748,7 @@ TCHAR szMsg[RC_STRING_MAX_SIZE];
if (ptrFileArray == NULL) if (ptrFileArray == NULL)
{ {
#ifdef _DEBUG #ifdef _DEBUG
ConErrPrintf("DEBUG: Cannot allocate memory for ptrFileArray!\n"); ConErrPrintf(_T("DEBUG: Cannot allocate memory for ptrFileArray!\n"));
#endif #endif
while (ptrStartNode) while (ptrStartNode)
{ {