Skip to content

Commit 41e1672

Browse files
committed
-
1 parent abc218a commit 41e1672

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -430,19 +430,11 @@ namespace IGFD
430430
if (!str.empty())
431431
{
432432
size_t sz = 0U;
433-
#ifdef _MSC_VER
434-
mbstowcs_s(&sz, nullptr, 0, str.c_str(), str.size());
435-
#else // _MSC_VER
436433
sz = std::mbstowcs(nullptr, str.c_str(), str.size());
437-
#endif // _MSC_VER
438434
if (sz)
439435
{
440436
ret.resize(sz);
441-
#ifdef _MSC_VER
442-
mbstowcs_s(nullptr, ret.data(), sz, str.c_str(), sz);
443-
#else // _MSC_VER
444437
std::mbstowcs((wchar_t*)ret.data(), str.c_str(), sz);
445-
#endif // _MSC_VER
446438
}
447439
}
448440
#endif // _IGFD_WIN_
@@ -456,19 +448,11 @@ namespace IGFD
456448
if (!str.empty())
457449
{
458450
size_t sz = 0U;
459-
#ifdef _MSC_VER
460-
wcstombs_s(&sz, nullptr, 0, str.c_str(), str.size());
461-
#else // _MSC_VER
462451
sz = std::wcstombs(nullptr, str.c_str(), str.size());
463-
#endif // _MSC_VER
464452
if (sz)
465453
{
466454
ret.resize(sz);
467-
#ifdef _MSC_VER
468-
wcstombs_s(nullptr, ret.data(), sz, str.c_str(), sz);
469-
#else // _MSC_VER
470455
std::wcstombs((char*)ret.data(), str.c_str(), sz);
471-
#endif // _MSC_VER
472456
}
473457
}
474458
#endif // _IGFD_WIN_

0 commit comments

Comments
 (0)