Commit 4585471c authored by Ghislain MARY's avatar Ghislain MARY

Fix logs in belle-sip tester for Windows 10.

parent 76057336
......@@ -52,7 +52,7 @@ namespace belle_sip_tester_windows10
{
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
Results.Text += msg;
Results.Text += msg + "\n";
});
}
}
......
......@@ -253,7 +253,7 @@ static void __belle_sip_logv_out(belle_sip_log_level lev, const char *fmt, va_li
#else
{
int len=strlen(msg);
wchar_t *tmp=(wchar_t*)belle_sip_malloc((len+1)*sizeof(wchar_t));
wchar_t *tmp=(wchar_t*)belle_sip_malloc0((len+1)*sizeof(wchar_t));
mbstowcs(tmp,msg,len);
OutputDebugStringW(tmp);
OutputDebugStringW(L"\r\n");
......
......@@ -24,10 +24,16 @@ static void nativeOutputTraceHandler(int lev, const char *fmt, va_list args)
}
}
static void belleSipNativeOutputTraceHandler(belle_sip_log_level lev, const char *fmt, va_list args)
{
nativeOutputTraceHandler((int)lev, fmt, args);
}
BelleSipTester::BelleSipTester()
{
belle_sip_tester_init(nativeOutputTraceHandler);
belle_sip_set_log_handler(belleSipNativeOutputTraceHandler);
}
BelleSipTester::~BelleSipTester()
......
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