RtlStringExHandleOtherFlagsA
NTSTATUS __stdcall RtlStringExHandleOtherFlagsA(
PSTR pszDest,
UINT64 cbDest,
UINT64 cchOriginalDestLength,
INT8 **ppszDestEnd,
UINT64 *pcchRemaining,
UINT64 dwFlags){
INT8 *v9;
if( cbDest && (dwFlags & 0x1000) != 0 )
{
*ppszDestEnd = &pszDest[cchOriginalDestLength];
*pcchRemaining = cbDest - cchOriginalDestLength;
pszDest[cchOriginalDestLength] = 0;
}
if( (dwFlags & 0x400) != 0 )
{
memset((INT64)pszDest, (unsigned __int8)dwFlags);
if( (_BYTE)dwFlags )
{
if( !cbDest )
return 0;
*pcchRemaining = 1i64;
v9 = &pszDest[cbDest - 1];
*ppszDestEnd = v9;
*v9 = 0;
}
else
{
*ppszDestEnd = pszDest;
*pcchRemaining = cbDest;
}
}
if( cbDest && (dwFlags & 0x800) != 0 )
{
*ppszDestEnd = pszDest;
*pcchRemaining = cbDest;
*pszDest = 0;
}
return 0;
}Referenced by:
RtlStringCbPrintfExA