mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Forgot to commit bug fix for LoadString()
svn path=/trunk/; revision=1588
This commit is contained in:
parent
ed2b81a1b5
commit
3c5287c859
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue