1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(libT) when logging on win32, use OutputDebugStringA instead of OutputDebugString

This commit is contained in:
Jordan Lee 2013-02-04 20:48:33 +00:00
parent 6d5a54e52c
commit 5307bef4ec

View file

@ -32,7 +32,7 @@ static int myQueueLength = 0;
#ifndef WIN32
/* make null versions of these win32 functions */
static inline int IsDebuggerPresent (void) { return false; }
static inline void OutputDebugString (const void * unused UNUSED) { }
static inline void OutputDebugStringA (const void * unused UNUSED) { }
#endif
/***
@ -206,7 +206,7 @@ tr_logAddDeep (const char * file,
evbuffer_add_printf (buf, " (%s:%d)\n", base, line);
/* FIXME (libevent2) ifdef this out for nonwindows platforms */
message = evbuffer_free_to_str (buf);
OutputDebugString (message);
OutputDebugStringA (message);
if (fp)
fputs (message, fp);
@ -238,7 +238,7 @@ tr_logAddMessage (const char * file,
evutil_vsnprintf (buf, sizeof (buf), fmt, ap);
va_end (ap);
OutputDebugString (buf);
OutputDebugStringA (buf);
if (*buf)
{