mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +00:00
Sync to Wine-20041201
Eric Pouech <pouech-eric@wanadoo.fr> - Const correctness fixes. svn path=/trunk/; revision=11973
This commit is contained in:
parent
bc927431e4
commit
4b3c9f12ad
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ static const union cptable * const cptables[59] =
|
||||||
|
|
||||||
static int cmp_codepage( const void *codepage, const void *entry )
|
static int cmp_codepage( const void *codepage, const void *entry )
|
||||||
{
|
{
|
||||||
return (unsigned int)codepage - (*(union cptable **)entry)->info.codepage;
|
return (unsigned int)codepage - (*(const union cptable **)entry)->info.codepage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ static inline int wcstombs_sbcs( const struct sbcs_table *table,
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dst <= (char *)src && dst + 16 > (char *)src)
|
if (dst <= (const char *)src && dst + 16 > (const char *)src)
|
||||||
{
|
{
|
||||||
/* overlapping buffers, do it char by char */
|
/* overlapping buffers, do it char by char */
|
||||||
while (srclen--)
|
while (srclen--)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue