From 4b3c9f12ad967c2c4a79a73b7c6994b6c80c1f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 7 Dec 2004 19:35:19 +0000 Subject: [PATCH] Sync to Wine-20041201 Eric Pouech - Const correctness fixes. svn path=/trunk/; revision=11973 --- reactos/lib/unicode/cptable.c | 2 +- reactos/lib/unicode/wctomb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/unicode/cptable.c b/reactos/lib/unicode/cptable.c index cf94fafe499..d68386a7764 100644 --- a/reactos/lib/unicode/cptable.c +++ b/reactos/lib/unicode/cptable.c @@ -154,7 +154,7 @@ static const union cptable * const cptables[59] = 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; } diff --git a/reactos/lib/unicode/wctomb.c b/reactos/lib/unicode/wctomb.c index 5f9874018ba..68be134e7ae 100644 --- a/reactos/lib/unicode/wctomb.c +++ b/reactos/lib/unicode/wctomb.c @@ -142,7 +142,7 @@ static inline int wcstombs_sbcs( const struct sbcs_table *table, 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 */ while (srclen--)