From 2abbb9093dc8d29ea056fd017421d8cbfa46a8cf Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 1 Aug 2005 09:21:03 +0000 Subject: [PATCH] gcc 4.0 warning fix. --- libs/unicode/mbtowc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/unicode/mbtowc.c b/libs/unicode/mbtowc.c index c9465f77b0..d6ebe875fb 100644 --- a/libs/unicode/mbtowc.c +++ b/libs/unicode/mbtowc.c @@ -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 */ int wine_cp_mbstowcs( const union cptable *table, int flags, - const char *src, int srclen, + const char *s, int srclen, WCHAR *dst, int dstlen ) { + const unsigned char *src = (const unsigned char*) s; + if (table->info.char_size == 1) { if (flags & MB_ERR_INVALID_CHARS)