mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
fcbccaa194
__throw_out_of_range_fmt is implemented in libstdc++, but it is needed by libsupc++ and that would mean we would have to link all C++ code to libstdc++.
23 lines
602 B
C
23 lines
602 B
C
/*
|
|
* PROJECT: GCC c++ support library
|
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
|
* PURPOSE: StringCchCopyNA implementation
|
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer <timo.kreuzer@reactos.org>
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#define StringCchCopyNA _StringCchCopyNA
|
|
#include <strsafe.h>
|
|
|
|
#undef StringCchCopyNA
|
|
|
|
HRESULT
|
|
WINAPI
|
|
StringCchCopyNA(
|
|
_Out_writes_(cchDest) _Always_(_Post_z_) STRSAFE_LPSTR pszDest,
|
|
_In_ size_t cchDest,
|
|
_In_reads_or_z_(cchToCopy) STRSAFE_LPCSTR pszSrc,
|
|
_In_ size_t cchToCopy)
|
|
{
|
|
return _StringCchCopyNA(pszDest, cchDest, pszSrc, cchToCopy);
|
|
}
|