forked from Mirrors/wine-wine
gcc 4.0 warning fix.
parent
5615513877
commit
2abbb9093d
|
@ -249,9 +249,11 @@ static int mbstowcs_dbcs_decompose( const struct dbcs_table *table,
|
||||||
|
|
||||||
/* return -1 on dst buffer overflow, -2 on invalid input char */
|
/* return -1 on dst buffer overflow, -2 on invalid input char */
|
||||||
int wine_cp_mbstowcs( const union cptable *table, int flags,
|
int wine_cp_mbstowcs( const union cptable *table, int flags,
|
||||||
const char *src, int srclen,
|
const char *s, int srclen,
|
||||||
WCHAR *dst, int dstlen )
|
WCHAR *dst, int dstlen )
|
||||||
{
|
{
|
||||||
|
const unsigned char *src = (const unsigned char*) s;
|
||||||
|
|
||||||
if (table->info.char_size == 1)
|
if (table->info.char_size == 1)
|
||||||
{
|
{
|
||||||
if (flags & MB_ERR_INVALID_CHARS)
|
if (flags & MB_ERR_INVALID_CHARS)
|
||||||
|
|
Loading…
Reference in New Issue