- Revert 35131 till a more complete fix is available.

svn path=/trunk/; revision=35132
This commit is contained in:
Aleksey Bragin 2008-08-05 19:07:27 +00:00
parent b86b32b0c4
commit 81538de14a

View file

@ -42,16 +42,6 @@ DbgPrint(
IN ...
);
ULONG
__cdecl
vDbgPrintExWithPrefix(
IN LPCSTR Prefix,
IN ULONG ComponentId,
IN ULONG Level,
IN LPCSTR Format,
IN va_list ap);
static const char * const debug_classes[] = { "fixme", "err", "warn", "trace" };
#define MAX_DEBUG_OPTIONS 256
@ -394,7 +384,10 @@ static const char *default_dbgstr_wn( const WCHAR *str, int n )
/* default implementation of wine_dbg_vprintf */
static int default_dbg_vprintf( const char *format, va_list args )
{
return vDbgPrintExWithPrefix(NULL, -1, 0, format, args);
char buffer[512];
vsnprintf( buffer, sizeof(buffer), format, args );
buffer[sizeof(buffer) - 1] = '\0';
return DbgPrint( "%s", buffer );
}