mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:55:53 +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 );
|
SetLastErrorByStatus( Status );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
nBufferMax--; // save room for the null
|
||||||
if( nBufferMax > AString.Length )
|
if( nBufferMax > AString.Length )
|
||||||
nBufferMax = AString.Length;
|
nBufferMax = AString.Length;
|
||||||
nBufferMax--; // save room for the null
|
|
||||||
memcpy( lpBuffer, AString.Buffer, nBufferMax );
|
memcpy( lpBuffer, AString.Buffer, nBufferMax );
|
||||||
lpBuffer[nBufferMax] = 0;
|
lpBuffer[nBufferMax] = 0;
|
||||||
RtlFreeAnsiString( &AString );
|
RtlFreeAnsiString( &AString );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue