mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:35:43 +00:00
Prevent overflow
svn path=/trunk/; revision=5247
This commit is contained in:
parent
7fa795731e
commit
7adac2389e
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: nls.c,v 1.12 2003/07/11 13:50:23 royce Exp $
|
||||
/* $Id: nls.c,v 1.13 2003/07/24 16:28:26 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -243,7 +243,7 @@ RtlMultiByteToUnicodeN (IN OUT PWCHAR UnicodeString,
|
|||
|
||||
for (i = 0; i < Size; i++)
|
||||
{
|
||||
*UnicodeString = NlsAnsiToUnicodeTable[*MbString];
|
||||
*UnicodeString = NlsAnsiToUnicodeTable[*((unsigned char *) MbString)];
|
||||
UnicodeString++;
|
||||
MbString++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue