Commit 8bd0f4ae authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: use OutputDebugStringA directly

Since OutputDebugStringW is just a wrapper around OutputDebugStringA
parent db6b6f8c
...@@ -301,6 +301,8 @@ static void PrintMsg (void *d, int type, const msg_item_t *p_item, ...@@ -301,6 +301,8 @@ static void PrintMsg (void *d, int type, const msg_item_t *p_item,
static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item, static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item,
const char *format, va_list dol) const char *format, va_list dol)
{ {
VLC_UNUSED(p_item);
const signed char *pverbose = d; const signed char *pverbose = d;
if (pverbose && (*pverbose < 0 || *pverbose < (type - VLC_MSG_ERR))) if (pverbose && (*pverbose < 0 || *pverbose < (type - VLC_MSG_ERR)))
return; return;
...@@ -323,7 +325,7 @@ static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item, ...@@ -323,7 +325,7 @@ static void Win32DebugOutputMsg (void* d, int type, const msg_item_t *p_item,
msg[msg_len] = '\n'; msg[msg_len] = '\n';
msg[msg_len + 1] = '\0'; msg[msg_len + 1] = '\0';
} }
OutputDebugString(msg); OutputDebugStringA(msg);
} }
free(msg); free(msg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment