mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 12:23:28 +00:00
Forgot to commit bug fix for LoadString()
svn path=/trunk/; revision=1588
This commit is contained in:
@@ -61,9 +61,9 @@ LoadStringA( HINSTANCE hInstance,
|
||||
SetLastErrorByStatus( Status );
|
||||
return 0;
|
||||
}
|
||||
nBufferMax--; // save room for the null
|
||||
if( nBufferMax > AString.Length )
|
||||
nBufferMax = AString.Length;
|
||||
nBufferMax--; // save room for the null
|
||||
memcpy( lpBuffer, AString.Buffer, nBufferMax );
|
||||
lpBuffer[nBufferMax] = 0;
|
||||
RtlFreeAnsiString( &AString );
|
||||
|
||||
Reference in New Issue
Block a user