Build fix

(cherry picked from commit 2f15a815b5)
This commit is contained in:
Shauren
2024-06-02 14:38:56 +02:00
parent bad2936918
commit 3af906f0a6

View File

@@ -188,7 +188,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);
}