Build fix

This commit is contained in:
Shauren
2024-06-02 14:38:56 +02:00
committed by GitHub
parent fd4ffc81b2
commit 2f15a815b5

View File

@@ -187,7 +187,7 @@ template<size_t size>
void TCharToChar(TCHAR const* src, char(&dst)[size])
{
if constexpr (std::is_same_v<TCHAR, char>)
::strcpy_s(dst, src, size);
::strcpy_s(dst, src);
else
::wcstombs_s(nullptr, dst, src, _TRUNCATE);
}