Include :

- correzione nella conversione stringhe UTF-16 in UTF-8.
This commit is contained in:
Dario Sassi
2020-11-20 12:56:19 +00:00
parent 05009fcea0
commit 57cf6a7c79
+2 -2
View File
@@ -232,7 +232,7 @@ class WtoAEX
return ;
}
int nLengthW = lstrlenW( psz) + 1 ;
int nLengthA = max( 2 * nLengthW, t_nBufferLength) ;
int nLengthA = std::max( 2 * nLengthW, t_nBufferLength) ;
SmartAllocMemory( &m_psz, nLengthA, m_szBuffer, t_nBufferLength) ;
@@ -275,7 +275,7 @@ class wcharBuffer
wchar_t* data( void)
{ return m_wBuffer.data() ; }
void terminate( size_t nLen)
{ nLen = (std::min)( nLen, m_wBuffer.size() - 1) ;
{ nLen = std::min( nLen, m_wBuffer.size() - 1) ;
m_wBuffer[nLen] = '\0' ; }
private :