diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-02 14:38:56 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-08-30 22:55:25 +0200 |
commit | 3af906f0a6a5c5e550976da1eb2020ee79a99e4f (patch) | |
tree | c93c6b1dfb628dcae97af436b142d7fc61408eb2 /src | |
parent | bad2936918e060c25bf008b94627c0835ed4314f (diff) |
Build fix
(cherry picked from commit 2f15a815b501519ae55a4e174265fa5425a3deab)
Diffstat (limited to 'src')
-rw-r--r-- | src/common/Platform/ServiceWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Platform/ServiceWin32.cpp b/src/common/Platform/ServiceWin32.cpp index 8cb213e501a..970bd5fbeeb 100644 --- a/src/common/Platform/ServiceWin32.cpp +++ b/src/common/Platform/ServiceWin32.cpp @@ -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); } |