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

This commit is contained in:
Ghislain MARY 2017-01-12 17:47:25 +01:00
parent 7793ff2cce
commit 17fd6667e0

View file

@ -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);