Update WINDBG to WinCE

svn-id: r8976
This commit is contained in:
Nicolas Bacca 2003-07-13 12:24:36 +00:00
parent a2f2d4c40a
commit f163ae5ce5

View File

@ -131,8 +131,14 @@ void NORETURN CDECL error(const char *s, ...) {
#endif
#if defined( USE_WINDBG )
#if defined( _WIN32_WCE )
TCHAR buf_output_unicode[1024];
MultiByteToWideChar(CP_ACP, 0, buf_output, strlen(buf_output) + 1, buf_output_unicode, sizeof(buf_output_unicode));
OutputDebugString(buf_output_unicode);
#else
OutputDebugString(buf_output);
#endif
#endif
#if defined ( _WIN32_WCE )
drawError(buf_output);
@ -168,8 +174,14 @@ void CDECL warning(const char *s, ...) {
#endif
#if defined( USE_WINDBG )
strcat(buf, "\n");
#if defined( _WIN32_WCE )
TCHAR buf_unicode[1024];
MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf_unicode, sizeof(buf_unicode));
OutputDebugString(buf_unicode);
#else
OutputDebugString(buf);
#endif
#endif
}
uint16 _debugLevel = 1;
@ -192,7 +204,13 @@ void CDECL debug(int level, const char *s, ...) {
#if defined( USE_WINDBG )
strcat(buf, "\n");
#if defined( _WIN32_WCE )
TCHAR buf_unicode[1024];
MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf_unicode, sizeof(buf_unicode));
OutputDebugString(buf_unicode);
#else
OutputDebugString(buf);
#endif
#endif
fflush(stdout);