mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
[PSDK]
Fix inline definition of STRSAFEAPI for MSVC svn path=/branches/cmake-bringup/; revision=50541
This commit is contained in:
parent
0f56e5955a
commit
56a3daafd4
|
@ -239,7 +239,11 @@ STRSAFEAPI StringCxxVPrintfEx(STRSAFE_LPTSTR pszDest, size_t cxDest, STRSAFE_LPT
|
|||
#else // !STRSAFE_LIB
|
||||
|
||||
/* Create inlined versions */
|
||||
#ifdef __GNUC__
|
||||
#define STRSAFEAPI HRESULT static __inline__
|
||||
#else
|
||||
#define STRSAFEAPI HRESULT __inline
|
||||
#endif
|
||||
|
||||
#define STRSAFE_MAX_CXX STRSAFE_CCHtoCXX(STRSAFE_MAX_CCH)
|
||||
|
||||
|
@ -497,7 +501,7 @@ StringCxxVPrintfEx(
|
|||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
if ((dwFlags & STRSAFE_FILL_BEHIND_NULL) && (iResult + 1 < cchMax))
|
||||
if ((dwFlags & STRSAFE_FILL_BEHIND_NULL) && ((size_t)iResult + 1 < cchMax))
|
||||
{
|
||||
memset(pszDest + iResult + 1,
|
||||
dwFlags & 0xff,
|
||||
|
|
Loading…
Reference in a new issue