MCPcopy Create free account
hub / github.com/acl-dev/acl / StringCchCatA

Function StringCchCatA

lib_fiber/cpp/src/detours/image.cpp:94–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94_Must_inspect_result_
95static inline HRESULT StringCchCatA(
96 _Out_writes_(cchDest) _Always_(_Post_z_) LPSTR pszDest,
97 _In_ size_t cchDest,
98 _In_ LPCSTR pszSrc)
99{
100 HRESULT hr;
101 size_t cchDestCurrent;
102
103 if (cchDest > 2147483647){
104 return ERROR_INVALID_PARAMETER;
105 }
106
107 hr = StringCchLengthA(pszDest, cchDest, &cchDestCurrent);
108
109 if (SUCCEEDED(hr) && cchDestCurrent < cchDest) {
110 hr = StringCchCopyA(pszDest + cchDestCurrent,
111 cchDest - cchDestCurrent,
112 pszSrc);
113 }
114
115 return hr;
116}
117
118#endif
119

Callers 2

DetourFindFunctionFunction · 0.85

Calls 1

StringCchCopyAFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…