Forgot to commit bug fix for LoadString()

svn path=/trunk/; revision=1588
This commit is contained in:
Phillip Susi 2001-02-01 00:04:44 +00:00
parent ed2b81a1b5
commit 3c5287c859

View file

@ -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 );