Commit 17fd6667 authored by Ghislain MARY's avatar Ghislain MARY

Prevent crash in Windows 10 tester for tests with the "Skip" tag.

parent 7793ff2c
......@@ -147,6 +147,7 @@ Platform::String^ NativeTester::testName(Platform::String^ suiteName, int testIn
char csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
wcstombs(csuitename, suitename.c_str(), sizeof(csuitename));
const char *cname = bc_tester_test_name(csuitename, testIndex);
if (cname == NULL) return ref new String();
wchar_t wcname[MAX_SUITE_NAME_SIZE];
mbstowcs(wcname, cname, sizeof(wcname));
return ref new String(wcname);
......
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