mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Match CUniBuffer::RemoveChar; MoveMemory shifts WCHARs
This commit is contained in:
@@ -7693,7 +7693,7 @@ bool CUniBuffer::RemoveChar( int nIndex )
|
||||
if( !lstrlenW( m_pwszBuffer ) || nIndex < 0 || nIndex >= lstrlenW( m_pwszBuffer ) )
|
||||
return false; // Invalid index
|
||||
|
||||
MoveMemory( m_pwszBuffer + nIndex, m_pwszBuffer + nIndex + 1, sizeof(TCHAR) * ( lstrlenW( m_pwszBuffer ) - nIndex ) );
|
||||
MoveMemory( m_pwszBuffer + nIndex, m_pwszBuffer + nIndex + 1, sizeof(WCHAR) * ( lstrlenW( m_pwszBuffer ) - nIndex ) );
|
||||
m_bAnalyseRequired = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user