mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Match CUniBuffer::SetText(LPCTSTR); the scratch buffer holds 2049 WCHARs
This commit is contained in:
@@ -7812,7 +7812,7 @@ bool CUniBuffer::SetText( LPCTSTR wszText )
|
||||
{
|
||||
if(lstrlenA(wszText) > 1024) return false;
|
||||
|
||||
WCHAR szBuffer[2048];
|
||||
WCHAR szBuffer[2049];
|
||||
ConvertAnsiToWide(wszText, szBuffer, 2048);
|
||||
SetText(szBuffer);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user