mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user