mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
unicode build fixes
svn path=/trunk/; revision=25126
This commit is contained in:
@@ -238,7 +238,7 @@ VOID ConPrintf(LPTSTR szFormat, va_list arg_ptr, DWORD nStdHandle)
|
||||
INT ConPrintfPaging(BOOL NewPage, LPTSTR szFormat, va_list arg_ptr, DWORD nStdHandle)
|
||||
{
|
||||
INT len;
|
||||
PCHAR pBuf;
|
||||
PTCHAR pBuf;
|
||||
CONSOLE_SCREEN_BUFFER_INFO csbi;
|
||||
TCHAR szOut[OUTPUT_BUFFER_SIZE];
|
||||
DWORD dwWritten;
|
||||
@@ -284,12 +284,7 @@ INT ConPrintfPaging(BOOL NewPage, LPTSTR szFormat, va_list arg_ptr, DWORD nStdHa
|
||||
}
|
||||
|
||||
len = _vstprintf (szOut, szFormat, arg_ptr);
|
||||
#ifdef _UNICODE
|
||||
pBuf = malloc(len + 1);
|
||||
len = WideCharToMultiByte( OutputCodePage, 0, szOut, len + 1, pBuf, len + 1, NULL, NULL) - 1;
|
||||
#else
|
||||
pBuf = szOut;
|
||||
#endif
|
||||
|
||||
for(i = 0; i < len; i++)
|
||||
{
|
||||
|
||||
@@ -50,27 +50,27 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
||||
ConOutResPaging(TRUE,STRING_START_HELP1);
|
||||
return 0;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/LOW"))
|
||||
else if(!_tcsicmp(arg[i], _T("/LOW")))
|
||||
{
|
||||
Priority = IDLE_PRIORITY_CLASS;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/NORMAL"))
|
||||
else if(!_tcsicmp(arg[i], _T("/NORMAL")))
|
||||
{
|
||||
Priority = NORMAL_PRIORITY_CLASS;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/HIGH"))
|
||||
else if(!_tcsicmp(arg[i], _T("/HIGH")))
|
||||
{
|
||||
Priority = HIGH_PRIORITY_CLASS;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/REALTIME"))
|
||||
else if(!_tcsicmp(arg[i], _T("/REALTIME")))
|
||||
{
|
||||
Priority = REALTIME_PRIORITY_CLASS;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/ABOVENORMAL"))
|
||||
else if(!_tcsicmp(arg[i], _T("/ABOVENORMAL")))
|
||||
{
|
||||
Priority = ABOVE_NORMAL_PRIORITY_CLASS;
|
||||
}
|
||||
else if(!_tcsicmp(arg[i], "/BELOWNORMAL"))
|
||||
else if(!_tcsicmp(arg[i], _T("/BELOWNORMAL")))
|
||||
{
|
||||
Priority = BELOW_NORMAL_PRIORITY_CLASS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user